From 91a1fee7d9bd1e7d36c099b06aac8f2b9e85def9 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 22 May 2020 15:34:44 +0000 Subject: Panic on unhandled traps (which for now is all of them). --- sys/arch/powerpc64/powerpc64/trap.c | 7 ++----- 1 file 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 @@ -21,11 +21,8 @@ #include -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); } -- cgit v1.2.3