[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Workaround for the keyboard hang problem in intel mac
From: |
Bean |
Subject: |
[PATCH] Workaround for the keyboard hang problem in intel mac |
Date: |
Wed, 7 May 2008 01:12:08 +0800 |
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
- [PATCH] Workaround for the keyboard hang problem in intel mac,
Bean <=