From b9e46e8cf41678da2a1d7752bdad39fc604dd2fe Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Sat, 7 Jan 2006 12:52:05 +0000 Subject: [PATCH] - don't panic at unknown commands (aborting the command is okay here) --- bochs/iodev/harddrv.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bochs/iodev/harddrv.cc b/bochs/iodev/harddrv.cc index 0a6b76760..951a10f1b 100644 --- a/bochs/iodev/harddrv.cc +++ b/bochs/iodev/harddrv.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: harddrv.cc,v 1.156 2005-12-27 13:21:25 vruppert Exp $ +// $Id: harddrv.cc,v 1.157 2006-01-07 12:52:05 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002 MandrakeSoft S.A. @@ -144,7 +144,7 @@ bx_hard_drive_c::init(void) char string[5]; char sbtext[8]; - BX_DEBUG(("Init $Id: harddrv.cc,v 1.156 2005-12-27 13:21:25 vruppert Exp $")); + BX_DEBUG(("Init $Id: harddrv.cc,v 1.157 2006-01-07 12:52:05 vruppert Exp $")); for (channel=0; channelget() == 1) { @@ -2485,9 +2485,7 @@ bx_hard_drive_c::write(Bit32u address, Bit32u value, unsigned io_len) case 0xF9: BX_ERROR(("write cmd 0xF9 (SET MAX ADDRESS) not supported"));command_aborted(channel, 0xF9); break; default: - BX_PANIC(("IO write(0x%04x): command 0x%02x", address, (unsigned) value)); - // if user foolishly decides to continue, abort the command - // so that the software knows the drive didn't understand it. + BX_ERROR(("IO write to 0x%04x: unknown command 0x%02x", address, value)); command_aborted(channel, value); } break;