From 629d88a77e4c8bd6b103a80892433ad146783bcc Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 18 Oct 2020 12:21:33 +0000 Subject: Remove leftover debugging output for EXC_PGM traps. --- sys/arch/powerpc64/powerpc64/trap.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/arch/powerpc64/powerpc64/trap.c b/sys/arch/powerpc64/powerpc64/trap.c index 49b89a90bd4..02da66d2fa1 100644 --- a/sys/arch/powerpc64/powerpc64/trap.c +++ b/sys/arch/powerpc64/powerpc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.42 2020/10/09 20:30:18 kettenis Exp $ */ +/* $OpenBSD: trap.c,v 1.43 2020/10/18 12:21:32 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis @@ -41,7 +41,9 @@ void exi_intr(struct trapframe *); /* intr.c */ void hvi_intr(struct trapframe *); /* intr.c */ void syscall(struct trapframe *); /* syscall.c */ +#ifdef TRAP_DEBUG void dumpframe(struct trapframe *); +#endif void trap(struct trapframe *frame) @@ -272,9 +274,6 @@ trap(struct trapframe *frame) break; case EXC_PGM|EXC_USER: - printf("type %x srr0 0x%lx\r\n", type, frame->srr0); - dumpframe(frame); - sv.sival_ptr = (void *)frame->srr0; trapsignal(p, SIGTRAP, 0, TRAP_BRKPT, sv); break; @@ -307,6 +306,8 @@ out: userret(p); } +#ifdef TRAP_DEBUG + #include void @@ -323,3 +324,5 @@ dumpframe(struct trapframe *frame) opal_printf("srr0 0x%lx\r\n", frame->srr0); opal_printf("srr1 0x%lx\r\n", frame->srr1); } + +#endif -- cgit v1.2.3