Improved bad currentdir variable panic message.
This commit is contained in:
parent
f2f4b2ca60
commit
a7c38cb997
|
@ -291,10 +291,12 @@ namespace Sortix
|
||||||
|
|
||||||
addr_t SwitchAddressSpace(addr_t addrspace)
|
addr_t SwitchAddressSpace(addr_t addrspace)
|
||||||
{
|
{
|
||||||
|
// Have fun debugging this.
|
||||||
if ( currentdir != Page::AlignDown(currentdir) )
|
if ( currentdir != Page::AlignDown(currentdir) )
|
||||||
{
|
{
|
||||||
PanicF("Attempted to switch to address space 0x%zx, but it "
|
PanicF("The variable containing the current address space "
|
||||||
"wasn't page aligned!", currentdir);
|
"contains garbage all of sudden: it isn't page-aligned. "
|
||||||
|
"It contains the value 0x%zx.", currentdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't switch if we are already there.
|
// Don't switch if we are already there.
|
||||||
|
|
Loading…
Reference in New Issue