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 assert that PSL_EE is on when do_pend...
details: https://anonhg.NetBSD.org/src/rev/2b2584a1c3f6
branches: trunk
changeset: 572726:2b2584a1c3f6
user: chs <chs%NetBSD.org@localhost>
date: Tue Jan 11 02:02:41 2005 +0000
description:
assert that PSL_EE is on when do_pending_int() is called
(since things don't work too well if it's not).
diffstat:
sys/arch/macppc/macppc/extintr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 4936eb717e48 -r 2b2584a1c3f6 sys/arch/macppc/macppc/extintr.c
--- a/sys/arch/macppc/macppc/extintr.c Tue Jan 11 01:54:20 2005 +0000
+++ b/sys/arch/macppc/macppc/extintr.c Tue Jan 11 02:02:41 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extintr.c,v 1.47 2005/01/07 06:11:20 briggs Exp $ */
+/* $NetBSD: extintr.c,v 1.48 2005/01/11 02:02:41 chs Exp $ */
/*-
* Copyright (c) 2000, 2001 Tsubai Masanari.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: extintr.c,v 1.47 2005/01/07 06:11:20 briggs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: extintr.c,v 1.48 2005/01/11 02:02:41 chs Exp $");
#include "opt_multiprocessor.h"
@@ -799,6 +799,7 @@
ci->ci_iactive = 1;
emsr = mfmsr();
+ KASSERT(emsr & PSL_EE);
dmsr = emsr & ~PSL_EE;
mtmsr(dmsr);
Home |
Main Index |
Thread Index |
Old Index