From e69203b3616177a1c40e6e8bea72236be479d1dd Mon Sep 17 00:00:00 2001 From: Christophe Bothamy Date: Tue, 3 Dec 2002 21:04:04 +0000 Subject: [PATCH] - change BX_PANIC to BX_ERROR on "Stop disc command", then raise_interrupt --- bochs/iodev/harddrv.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bochs/iodev/harddrv.cc b/bochs/iodev/harddrv.cc index fa880c7fd..9ed7707ac 100644 --- a/bochs/iodev/harddrv.cc +++ b/bochs/iodev/harddrv.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: harddrv.cc,v 1.89 2002-11-25 21:48:22 cbothamy Exp $ +// $Id: harddrv.cc,v 1.90 2002-12-03 21:04:04 cbothamy Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002 MandrakeSoft S.A. @@ -175,7 +175,7 @@ bx_hard_drive_c::init(void) Bit8u channel; char string[5]; - BX_DEBUG(("Init $Id: harddrv.cc,v 1.89 2002-11-25 21:48:22 cbothamy Exp $")); + BX_DEBUG(("Init $Id: harddrv.cc,v 1.90 2002-12-03 21:04:04 cbothamy Exp $")); for (channel=0; channelget() == 1) { @@ -1320,7 +1320,9 @@ if ( quantumsMax == 0) bx_bool Start = (BX_SELECTED_CONTROLLER(channel).buffer[4] >> 0) & 1; if (!LoEj && !Start) { // stop the disc - BX_PANIC(("Stop disc not implemented")); + BX_ERROR(("FIXME: Stop disc not implemented")); + atapi_cmd_nop(channel); + raise_interrupt(channel); } else if (!LoEj && Start) { // start the disc and read the TOC // BX_PANIC(("Start disc not implemented")); BX_ERROR(("FIXME: ATAPI start disc not reading TOC"));