All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Workaround for the keyboard hang problem in intel mac
@ 2008-05-06 17:12 Bean
  2008-05-07 12:55 ` Robert Millan
  0 siblings, 1 reply; 5+ messages in thread
From: Bean @ 2008-05-06 17:12 UTC (permalink / raw)
  To: The development of GRUB 2

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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-07 17:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 17:12 [PATCH] Workaround for the keyboard hang problem in intel mac Bean
2008-05-07 12:55 ` Robert Millan
2008-05-07 13:55   ` Bean
2008-05-07 17:09     ` Pavel Roskin
2008-05-07 17:29       ` Bean

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.