* grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
This commit is contained in:
parent
6be1c01fd7
commit
583168a216
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
|
||||
|
||||
2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* include/grub/video.h: add missing EXPORT_FUND on
|
||||
|
|
|
@ -177,6 +177,10 @@ grub_pata_readwrite (struct grub_ata *disk,
|
|||
/* Start command. */
|
||||
grub_pata_regset (dev, GRUB_ATA_REG_CMD, parms->taskfile.cmd);
|
||||
|
||||
/* Wait for !BSY. */
|
||||
if (grub_pata_wait_not_busy (dev, GRUB_ATA_TOUT_DATA))
|
||||
return grub_errno;
|
||||
|
||||
/* Check status. */
|
||||
grub_int8_t sts = grub_pata_regget (dev, GRUB_ATA_REG_STATUS);
|
||||
grub_dprintf ("pata", "status=0x%x\n", sts);
|
||||
|
|
Loading…
Reference in a new issue