nova: avoid fault during core thread fault dump

This commit is contained in:
Alexander Boettcher 2014-05-02 09:59:42 +02:00 committed by Norman Feske
parent de0a771fae
commit 8c5f350e0e
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,8 @@ namespace Genode {
printf("%s (%s pf_addr=%p pf_ip=%p from %02lx %s)\n", msg,
pf_type == Rm_session::WRITE_FAULT ? "WRITE" : "READ",
(void *)pf_addr, (void *)pf_ip,
faulter_badge, reinterpret_cast<char *>(faulter_badge));
faulter_badge,
faulter_badge ? reinterpret_cast<char *>(faulter_badge) : 0);
}

View File

@ -107,7 +107,7 @@ static void page_fault_handler()
addr_t pf_type = utcb->qual[0];
print_page_fault("\nPAGE-FAULT IN CORE", pf_addr, pf_ip,
(Genode::Rm_session::Fault_type)pf_type, ~0UL);
(Genode::Rm_session::Fault_type)pf_type, 0);
/* dump stack trace */
struct Core_img