Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/mpc6xx Don't install extintr handler if not...
details: https://anonhg.NetBSD.org/src/rev/a804802e3ed4
branches: trunk
changeset: 534099:a804802e3ed4
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 16 16:39:12 2002 +0000
description:
Don't install extintr handler if not supplied.
Make panic message more informative.
diffstat:
sys/arch/powerpc/mpc6xx/mpc6xx_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 70e9b19d59eb -r a804802e3ed4 sys/arch/powerpc/mpc6xx/mpc6xx_machdep.c
--- a/sys/arch/powerpc/mpc6xx/mpc6xx_machdep.c Tue Jul 16 15:41:57 2002 +0000
+++ b/sys/arch/powerpc/mpc6xx/mpc6xx_machdep.c Tue Jul 16 16:39:12 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpc6xx_machdep.c,v 1.3 2002/07/09 19:05:00 matt Exp $ */
+/* $NetBSD: mpc6xx_machdep.c,v 1.4 2002/07/16 16:39:12 matt Exp $ */
/*
* Copyright (C) 2002 Matt Thomas
@@ -268,7 +268,8 @@
/*
* external interrupt handler install
*/
- mpc6xx_install_extint(handler);
+ if (handler)
+ mpc6xx_install_extint(handler);
__syncicache(0, EXC_LAST + 0x100);
@@ -393,7 +394,7 @@
#ifdef DIAGNOSTIC
if (offset > 0x1ffffff)
- panic("install_extint: too far away");
+ panic("install_extint: %p too far away (%#x)", handler, offset);
#endif
__asm __volatile ("mfmsr %0; andi. %1,%0,%2; mtmsr %1"
: "=r" (omsr), "=r" (msr)
Home |
Main Index |
Thread Index |
Old Index