From 6881dbd848bcb50aa77202970a7618945490157c Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Wed, 27 Mar 2002 03:47:45 +0000 Subject: [PATCH] - only print the first 10 copies of "WARNING: Local APIC Processor Priority not implemented" to avoid slowing sim down to a crawl. --- bochs/cpu/apic.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bochs/cpu/apic.cc b/bochs/cpu/apic.cc index b2dafa37f..b16381532 100644 --- a/bochs/cpu/apic.cc +++ b/bochs/cpu/apic.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: apic.cc,v 1.12 2002-03-25 01:58:34 bdenney Exp $ +// $Id: apic.cc,v 1.13 2002-03-27 03:47:45 bdenney Exp $ ///////////////////////////////////////////////////////////////////////// // #define NEED_CPU_REG_SHORTCUTS 1 @@ -683,7 +683,11 @@ bx_local_apic_c::get_delivery_bitmask (Bit8u dest, Bit8u dest_mode) Bit8u bx_local_apic_c::get_ppr () { - BX_ERROR(("WARNING: Local APIC Processor Priority not implemented, returning 0")); + static int warned = 0; + if (warned < 10) { + BX_ERROR(("WARNING: Local APIC Processor Priority not implemented, returning 0")); + warned++; + } // should look at TPR, vector of highest priority isr, etc. return 0; }