nova: avoid fault during core thread fault dump
This commit is contained in:
parent
de0a771fae
commit
8c5f350e0e
|
@ -42,7 +42,8 @@ namespace Genode {
|
||||||
printf("%s (%s pf_addr=%p pf_ip=%p from %02lx %s)\n", msg,
|
printf("%s (%s pf_addr=%p pf_ip=%p from %02lx %s)\n", msg,
|
||||||
pf_type == Rm_session::WRITE_FAULT ? "WRITE" : "READ",
|
pf_type == Rm_session::WRITE_FAULT ? "WRITE" : "READ",
|
||||||
(void *)pf_addr, (void *)pf_ip,
|
(void *)pf_addr, (void *)pf_ip,
|
||||||
faulter_badge, reinterpret_cast<char *>(faulter_badge));
|
faulter_badge,
|
||||||
|
faulter_badge ? reinterpret_cast<char *>(faulter_badge) : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ static void page_fault_handler()
|
||||||
addr_t pf_type = utcb->qual[0];
|
addr_t pf_type = utcb->qual[0];
|
||||||
|
|
||||||
print_page_fault("\nPAGE-FAULT IN CORE", pf_addr, pf_ip,
|
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 */
|
/* dump stack trace */
|
||||||
struct Core_img
|
struct Core_img
|
||||||
|
|
Loading…
Reference in New Issue