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 /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel