- 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.
This commit is contained in:
Bryce Denney 2001-11-12 03:29:18 +00:00
parent f95a8f1885
commit 94ba0f4ca4
1 changed files with 1 additions and 5 deletions

View File

@ -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));