From 924b155d98758be7b214f7fb0af517365ef3ac51 Mon Sep 17 00:00:00 2001 From: chs Date: Sun, 23 Jan 2005 19:10:23 +0000 Subject: [PATCH] turn interrupts on in cpu_reboot(), in case someone reboots from a strange context via ddb. --- sys/arch/macppc/macppc/machdep.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 58a36ee3e017..0119bb32cda1 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.133 2004/07/03 16:24:57 manu Exp $ */ +/* $NetBSD: machdep.c,v 1.134 2005/01/23 19:10:23 chs Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.133 2004/07/03 16:24:57 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.134 2005/01/23 19:10:23 chs Exp $"); #include "opt_compat_netbsd.h" #include "opt_ddb.h" @@ -350,6 +350,12 @@ cpu_reboot(howto, what) static char str[256]; char *ap = str, *ap1 = ap; + /* + * Enable external interrupts in case someone is rebooting + * from a strange context via ddb. + */ + mtmsr(mfmsr() | PSL_EE); + boothowto = howto; if (!cold && !(howto & RB_NOSYNC) && !syncing) { syncing = 1;