Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc turn interrupts on in cpu_reboot(), i...
details: https://anonhg.NetBSD.org/src/rev/3d14f7123ffd
branches: trunk
changeset: 573246:3d14f7123ffd
user: chs <chs%NetBSD.org@localhost>
date: Sun Jan 23 19:10:23 2005 +0000
description:
turn interrupts on in cpu_reboot(), in case someone reboots from
a strange context via ddb.
diffstat:
sys/arch/macppc/macppc/machdep.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 6484fa5075f7 -r 3d14f7123ffd sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c Sun Jan 23 19:02:02 2005 +0000
+++ b/sys/arch/macppc/macppc/machdep.c Sun Jan 23 19:10:23 2005 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
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;
Home |
Main Index |
Thread Index |
Old Index