[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Workaround for the keyboard hang problem in intel mac
From: |
Robert Millan |
Subject: |
Re: [PATCH] Workaround for the keyboard hang problem in intel mac |
Date: |
Wed, 7 May 2008 14:55:54 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Wed, May 07, 2008 at 01:12:08AM +0800, Bean wrote:
> 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
I think it'd be nice to have a comment there explaining why this is done.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)