- improve panic slightly to show limits on LDT, if the limit is exceeded

This commit is contained in:
Bryce Denney 2002-10-03 05:10:24 +00:00
parent 3e797e33d1
commit aeffd3e212

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: segment_ctrl_pro.cc,v 1.18 2002-09-24 16:35:44 kevinlawton Exp $
// $Id: segment_ctrl_pro.cc,v 1.19 2002-10-03 05:10:24 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -606,7 +606,8 @@ BX_INFO(("-----------------------------------"));
BX_PANIC(("fetch_raw_descriptor: LDTR.valid=0"));
}
if ((selector->index*8 + 7) > BX_CPU_THIS_PTR ldtr.cache.u.ldt.limit) {
BX_PANIC(("fetch_raw_descriptor: LDT: index > limit"));
BX_PANIC(("fetch_raw_descriptor: LDT: index (%x)%x > limit (%x)",
(selector->index*8 + 7), selector->index, BX_CPU_THIS_PTR ldtr.cache.u.ldt.limit));
exception(exception_no, selector->value & 0xfffc, 0);
return;
}