Fixed PANIC message

This commit is contained in:
Stanislav Shwartsman 2007-03-10 09:04:39 +00:00
parent d471dea435
commit 8ce336cad3

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: io_pro.cc,v 1.21 2006-08-31 18:18:17 sshwarts Exp $
// $Id: io_pro.cc,v 1.22 2007-03-10 09:04:39 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -159,12 +159,12 @@ bx_bool BX_CPU_C::allow_io(Bit16u addr, unsigned len)
2, 0, BX_READ, &io_base);
if (io_base <= 103) {
BX_PANIC(("allow_io(): TR:io_base (%u) <= 103",io_base));
return(0);
BX_ERROR(("allow_io(): TR:io_base (%u) <= 103", io_base));
return(0);
}
if ( (Bit32s) (addr/8) >= (Bit32s) (BX_CPU_THIS_PTR tr.cache.u.system.limit_scaled - io_base)) {
BX_INFO(("allow_io(): IO addr %x (len %d) outside TSS IO permission map (base=%x, limit=%x) #GP(0)",
BX_ERROR(("allow_io(): IO addr %x (len %d) outside TSS IO permission map (base=%x, limit=%x) #GP(0)",
addr, len, io_base, BX_CPU_THIS_PTR tr.cache.u.system.limit_scaled));
return(0);
}