Hi,

This patch fix the keyboard hang problem when using boot camp to load
legacy system.

diff --git a/kern/i386/pc/startup.S b/kern/i386/pc/startup.S
index 5d4bbcb..455233a 100644
--- a/kern/i386/pc/startup.S
+++ b/kern/i386/pc/startup.S
@@ -1240,6 +1240,19 @@ FUNCTION(grub_console_getkey)
        call    prot_to_real
        .code16

+       pushfw
+       sti
+
+1:
+       movb    $1, %ah
+       int     $0x16
+       jnz     2f
+       hlt
+       jmp     1b
+
+2:
+       popfw
+       movb    $0, %ah
        int     $0x16

        movw    %ax, %dx                /* real_to_prot uses %eax */

-- 
Bean


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to