diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-05-22 15:34:44 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-05-22 15:34:44 +0000 |
commit | 91a1fee7d9bd1e7d36c099b06aac8f2b9e85def9 (patch) | |
tree | 66e36ebc20e2222c86ee47b503ad09df23b0bdf5 | |
parent | 1cf25c0b56754c93cbe625dd78d530d7dc82143a (diff) |
Panic on unhandled traps (which for now is all of them).
-rw-r--r-- | sys/arch/powerpc64/powerpc64/trap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/powerpc64/powerpc64/trap.c b/sys/arch/powerpc64/powerpc64/trap.c index b44bf1fd321..091acdfc15a 100644 --- a/sys/arch/powerpc64/powerpc64/trap.c +++ b/sys/arch/powerpc64/powerpc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.1 2020/05/22 15:07:47 kettenis Exp $ */ +/* $OpenBSD: trap.c,v 1.2 2020/05/22 15:34:43 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -21,11 +21,8 @@ #include <machine/trap.h> -extern void opal_cec_reboot(void); - void trap(struct trapframe *frame) { - printf("trap type %lx at lr %lx\n", frame->exc, frame->lr); - opal_cec_reboot(); + panic("trap type %lx at lr %lx", frame->exc, frame->lr); } |