Skip to contentSkip to conversation

rombios: don't busy-wait for keystrokes.

PATCH New Tim Deegan 1 participant 1 message Nov 16, 2009

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 rombios: don't busy-wait for keystrokes.

Spinning waiting for the keyboard is a bit rude on a virtual machine. Wait for an interrupt instead.

tools/firmware/rombios/rombios.c +1 -1
diff -r 024e2a4a27f6 tools/firmware/rombios/rombios.c
@@ -11249,7 +11249,7 @@
   cmp  bx, 0x001c
   jne  int16_key_found
   sti
-  nop
+  hlt
 #if 0
                            /* no key yet, call int 15h, function AX=9002 */
   0x50,                    /* push AX */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel