Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/lib port-i386/44563: boot loader prompt ...



details:   https://anonhg.NetBSD.org/src/rev/a9429554a8c4
branches:  trunk
changeset: 762072:a9429554a8c4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Feb 14 23:47:11 2011 +0000

description:
port-i386/44563: boot loader prompt doesn't read keyboard input on a MacBook1,1

check for keystroke (int 16h, AH=01h) before getting keystroke (int 16h,
AH=00h), fixes bootloader keyboard input with Apple firmware, from Taylor R
Campbell

diffstat:

 sys/arch/i386/stand/lib/pcio.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 2afa8b59c8bf -r a9429554a8c4 sys/arch/i386/stand/lib/pcio.c
--- a/sys/arch/i386/stand/lib/pcio.c    Mon Feb 14 21:29:45 2011 +0000
+++ b/sys/arch/i386/stand/lib/pcio.c    Mon Feb 14 23:47:11 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcio.c,v 1.28 2010/06/25 15:35:08 tsutsui Exp $         */
+/*     $NetBSD: pcio.c,v 1.29 2011/02/14 23:47:11 jmcneill Exp $        */
 
 /*
  * Copyright (c) 1996, 1997
@@ -271,6 +271,8 @@
        default: /* to make gcc -Wall happy... */
        case CONSDEV_PC:
 #endif
+               while (!coniskey())
+                       ;
                c = congetc();
 #ifdef CONSOLE_KEYMAP
                {



Home | Main Index | Thread Index | Old Index