diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2013-08-06 14:48:38 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-08 12:03:16 +0100 |
commit | db46adf193be09e33fb1778f840cda5de91c777e (patch) | |
tree | 1c6037658eb46e4a7bc1d66ce013d35e58a4cbcc /tools/firmware | |
parent | 413a6fb4ee81897acafefb90f81ef3d2661c3aa6 (diff) | |
download | xen-db46adf193be09e33fb1778f840cda5de91c777e.tar.gz xen-db46adf193be09e33fb1778f840cda5de91c777e.tar.bz2 xen-db46adf193be09e33fb1778f840cda5de91c777e.zip |
rombios/ata: Reading this status register has no relevant side effects
So taking two traps when one will do is pointless. This removes 1 of 13
VMExits on the int 0x13 hotpath.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/firmware')
-rw-r--r-- | tools/firmware/rombios/rombios.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/firmware/rombios/rombios.c b/tools/firmware/rombios/rombios.c index a3efc618e0..f5557477a5 100644 --- a/tools/firmware/rombios/rombios.c +++ b/tools/firmware/rombios/rombios.c @@ -2540,7 +2540,6 @@ static int await_ide(when_done,base,timeout) Bit32u time=0,last=0; Bit16u status; Bit8u result; - status = inb(base + ATA_CB_STAT); // for the times you're supposed to throw one away for(;;) { status = inb(base+ATA_CB_STAT); time++; |