Skip to content

Commit

Permalink
- ignore single mode command 0x02 (386BSD writes it, but works with i…
Browse files Browse the repository at this point in the history
…t ignored)
  • Loading branch information
vruppert committed May 18, 2010
1 parent 791ebff commit a262e42
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 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
Expand Down Expand Up @@ -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) */
Expand Down Expand Up @@ -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) */
Expand Down

0 comments on commit a262e42

Please sign in to comment.