From 94ba0f4ca434dc658d3e3c5c5143f7183673682d Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Mon, 12 Nov 2001 03:29:18 +0000 Subject: [PATCH] - remove some "#if BX_DEBUG" lines. What are these anyway? They've probably been treated as ifdef instead, but a sun compiler doesn't like them. Anyway, they were being used around a check for irq_num > 15. This bounds check seems ok to do all the time, so I just removed the #if BX_DEBUG lines and corresponding #endifs. --- bochs/iodev/pic.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bochs/iodev/pic.cc b/bochs/iodev/pic.cc index 51b42dfdc..e68d1c0b9 100644 --- a/bochs/iodev/pic.cc +++ b/bochs/iodev/pic.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: pic.cc,v 1.13 2001-11-11 00:45:42 bdenney Exp $ +// $Id: pic.cc,v 1.14 2001-11-12 03:29:18 bdenney Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -504,10 +504,8 @@ bx_pic_c::trigger_irq(unsigned irq_no) int irq_no_bitmask; -#if BX_DEBUG if ( irq_no > 15 ) BX_PANIC(("trigger_irq: irq out of range")); -#endif if (bx_dbg.pic) BX_INFO(("trigger_irq(%d decimal)", (unsigned) irq_no)); @@ -534,10 +532,8 @@ bx_pic_c::untrigger_irq(unsigned irq_no) int irq_no_bitmask; -#if BX_DEBUG if ( irq_no > 15 ) BX_PANIC(("untrigger_irq: irq out of range")); -#endif if (bx_dbg.pic) BX_INFO(("untrigger_irq(%d decimal)", (unsigned) irq_no));