Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/vax Add some small checks to avoid unwanted pan...
details: https://anonhg.NetBSD.org/src/rev/3a49e24e2f52
branches: trunk
changeset: 473804:3a49e24e2f52
user: ragge <ragge%NetBSD.org@localhost>
date: Sun Jun 20 00:53:02 1999 +0000
description:
Add some small checks to avoid unwanted panic types.
diffstat:
sys/arch/vax/vax/trap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 1e708a8c75ba -r 3a49e24e2f52 sys/arch/vax/vax/trap.c
--- a/sys/arch/vax/vax/trap.c Sun Jun 20 00:51:37 1999 +0000
+++ b/sys/arch/vax/vax/trap.c Sun Jun 20 00:53:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.44 1999/03/24 05:51:17 mrg Exp $ */
+/* $NetBSD: trap.c,v 1.45 1999/06/20 00:53:02 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -171,7 +171,8 @@
#endif
#ifdef DIAGNOSTIC
if (p == 0)
- panic("trap: access fault without process");
+ panic("trap: access fault: addr %lx code %lx",
+ frame->pc, frame->code);
#endif
/*
* First check for ptefetch. Can only happen to pages
@@ -228,7 +229,7 @@
break;
case T_PTELEN:
- if (p->p_addr)
+ if (p && p->p_addr)
FAULTCHK;
panic("ptelen fault in system space: addr %lx pc %lx",
frame->code, frame->pc);
Home |
Main Index |
Thread Index |
Old Index