diff options
author | 2020-07-14 16:54:46 +0000 | |
---|---|---|
committer | 2020-07-14 16:54:46 +0000 | |
commit | e6e88c3f43e0db51d235546aed875f281bcb1cfe (patch) | |
tree | 5efa6cced3bf13c358bafcb768dadf96aeff335c | |
parent | Fix TIB/TCB on powerpc64. Some bright sould decided that the TCB should (diff) | |
download | wireguard-openbsd-e6e88c3f43e0db51d235546aed875f281bcb1cfe.tar.xz wireguard-openbsd-e6e88c3f43e0db51d235546aed875f281bcb1cfe.zip |
Put some debug code behin #ifdef TRAP_DEBUG.
-rw-r--r-- | sys/arch/powerpc64/powerpc64/trap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/powerpc64/powerpc64/trap.c b/sys/arch/powerpc64/powerpc64/trap.c index a0cd9cb12ec..f7dc0194026 100644 --- a/sys/arch/powerpc64/powerpc64/trap.c +++ b/sys/arch/powerpc64/powerpc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.27 2020/07/11 12:17:59 kettenis Exp $ */ +/* $OpenBSD: trap.c,v 1.28 2020/07/14 16:54:46 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -174,9 +174,11 @@ trap(struct trapframe *frame) error = uvm_fault(map, trunc_page(va), 0, ftype); KERNEL_UNLOCK(); if (error) { +#ifdef TRAP_DEBUG printf("type %x dar 0x%lx dsisr 0x%lx %s\r\n", type, frame->dar, frame->dsisr, p->p_p->ps_comm); dumpframe(frame); +#endif if (error == ENOMEM) { sig = SIGKILL; @@ -215,9 +217,11 @@ trap(struct trapframe *frame) error = uvm_fault(map, trunc_page(va), 0, ftype); KERNEL_UNLOCK(); if (error) { +#ifdef TRAP_DEBUG printf("type %x srr0 0x%lx %s\r\n", type, frame->srr0, p->p_p->ps_comm); dumpframe(frame); +#endif if (error == ENOMEM) { sig = SIGKILL; |