From fd477dac7139debc2db49fc38695b373254761a2 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Tue, 18 May 2010 17:48:48 +0000 Subject: [PATCH] - ignore single mode command 0x02 (386BSD writes it, but works with it ignored) --- bochs/iodev/pic.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bochs/iodev/pic.cc b/bochs/iodev/pic.cc index 50c7e83be..dd0346a28 100644 --- a/bochs/iodev/pic.cc +++ b/bochs/iodev/pic.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: pic.cc,v 1.56 2009-12-04 19:50:29 sshwarts Exp $ +// $Id: pic.cc,v 1.57 2010-05-18 17:48:48 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002-2009 The Bochs Project @@ -381,6 +381,10 @@ void bx_pic_c::write(Bit32u address, Bit32u value, unsigned io_len) service_master_pic(); break; + case 0x02: // single mode bit: 1 = single, 0 = cascade + // ignore. 386BSD writes this value but works with it ignored. + break; + default: BX_PANIC(("write to port 20h = %02x", value)); } /* switch (value) */ @@ -556,6 +560,10 @@ void bx_pic_c::write(Bit32u address, Bit32u value, unsigned io_len) service_slave_pic(); break; + case 0x02: // single mode bit: 1 = single, 0 = cascade + // ignore. 386BSD writes this value but works with it ignored. + break; + default: BX_PANIC(("write to port A0h = %02x", value)); } /* switch (value) */