Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JtQiA-0004EG-SE for mharc-grub-devel@gnu.org; Tue, 06 May 2008 13:12:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtQi8-0004Ck-7B for grub-devel@gnu.org; Tue, 06 May 2008 13:12:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtQi6-0004Bs-P9 for grub-devel@gnu.org; Tue, 06 May 2008 13:12:15 -0400 Received: from [199.232.76.173] (port=40721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtQi6-0004Bp-KK for grub-devel@gnu.org; Tue, 06 May 2008 13:12:14 -0400 Received: from ti-out-0910.google.com ([209.85.142.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JtQi6-0001Xa-6X for grub-devel@gnu.org; Tue, 06 May 2008 13:12:14 -0400 Received: by ti-out-0910.google.com with SMTP id u5so651773tia.10 for ; Tue, 06 May 2008 10:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=nbMBz7jOM5dWNnay+dY5Hs6XrYii6FIdwEvi4bqp/Fg=; b=WiAn+bdYhDQZxafbRq4b3RxDcc0x7ptkk3NYP4F/88134WTfJylbJyudvmLup+AXKhtIWGaoteKV22X5uGaEk1En7w/hVijbgMyABRMySPJ8caPx+mCgVjCV7vlqmCEyIx+660oV1T14dW0MceWwbFyMjCE5IcTFLWV0Rp/itco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pnGO8z6pdfU1tYpBZOBGHdJjyT5bfW4l7+DsonvusVIJI11Y7jf/JChzSKiOgo7oDC5XDR8hraS4WojniYeIKM7GoXus4ldQD6RLgUqjGJY8JpmJ9lDyu+f8TUPCnpcDJlKTZuRmzDU52KLf390KrZd0pcNWzmP0e6F2nynHxAo= Received: by 10.110.68.10 with SMTP id q10mr95341tia.37.1210093928462; Tue, 06 May 2008 10:12:08 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Tue, 6 May 2008 10:12:08 -0700 (PDT) Message-ID: Date: Wed, 7 May 2008 01:12:08 +0800 From: Bean To: "The development of GRUB 2" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: [PATCH] Workaround for the keyboard hang problem in intel mac X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2008 17:12:17 -0000 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