hw: log stack pointer on x86 CPU exception

This commit is contained in:
Christian Helmuth 2018-12-04 17:56:11 +01:00 committed by Norman Feske
parent bd53e5b496
commit 600a5ecdaf
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ void Pager_object::unresolved_page_fault_occurred()
Platform_thread * const pt = (Platform_thread *)badge();
if (pt && pt->pd())
warning("page fault, pager_object: pd='", pt->pd()->label(),
"' thread='", pt->label(), " ", pt->kernel_object()->fault());
"' thread='", pt->label(), "' ", pt->kernel_object()->fault());
}
void Pager_object::print(Output &out) const

View File

@ -46,6 +46,7 @@ void Thread::exception(Cpu & cpu)
return;
}
Genode::warning(*this, ": triggered unknown exception ", regs->trapno,
" with error code ", regs->errcode, " at ip=", (void*)regs->ip);
" with error code ", regs->errcode, " at ip=", (void*)regs->ip, " sp=", (void*)regs->sp);
_die();
}