[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-dev
Subject:    [Bochs-developers] Patch for 0xAA encountered at startup
From:       Dave Poirier <eks () void-core ! 2y ! net>
Date:       2002-02-21 16:42:27
[Download RAW message or body]

This is a patch to fix the bug report:

[ #490570 ] OUTB set and command 0xaa encountered
-- 
EKS - Dave Poirier                               (instinc@users.sf.net)
"may the hairs on his toes never fall out"           http://uuu.sf.net/
"The last good thing written in 'C' was Franz Schubert's 9th symphony."

["patch.keyboard-aa-encountered" (text/plain)]

--- iodev/keyboard.cc.old	Thu Feb 21 11:39:02 2002
+++ iodev/keyboard.cc	Thu Feb 21 11:39:07 2002
@@ -339,6 +339,7 @@
   UNUSED(this_ptr);
 #endif  // !BX_USE_KEY_SMF
   Bit8u   command_byte;
+  static int kbd_initialized=0;
 
   if (io_len > 1)
     BX_PANIC(("kbd: io write to address %08x, len=%u",
@@ -479,6 +480,12 @@
           break;
         case 0xaa: // motherboard controller self test
           BX_DEBUG(("Self Test"));
+	  if( kbd_initialized == 0 )
+	  {
+	    BX_KEY_THIS s.controller_Qsize = 0;
+	    BX_KEY_THIS s.kbd_controller.outb = 0;
+	    kbd_initialized++;
+	  }
           // controller output buffer must be empty
           if (BX_KEY_THIS s.kbd_controller.outb) {
 		BX_ERROR(("kbd: OUTB set and command 0x%02x encountered", value));

_______________________________________________
bochs-developers mailing list
bochs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-developers

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic