Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/sun2 Fixed has_context to return true on the k...
details: https://anonhg.NetBSD.org/src/rev/a8f5b58bb718
branches: trunk
changeset: 508369:a8f5b58bb718
user: fredette <fredette%NetBSD.org@localhost>
date: Tue Apr 10 12:39:56 2001 +0000
description:
Fixed has_context to return true on the kernel pmap,
which always has context zero. This was causing panics
under DIAGNOSTIC.
diffstat:
sys/arch/sun2/sun2/pmap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 79154eed2c9a -r a8f5b58bb718 sys/arch/sun2/sun2/pmap.c
--- a/sys/arch/sun2/sun2/pmap.c Tue Apr 10 12:37:49 2001 +0000
+++ b/sys/arch/sun2/sun2/pmap.c Tue Apr 10 12:39:56 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.3 2001/04/06 14:52:19 fredette Exp $ */
+/* $NetBSD: pmap.c,v 1.4 2001/04/10 12:39:56 fredette Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -326,7 +326,7 @@
#define EMPTY_CONTEXT 0
#define KERNEL_CONTEXT 0
#define FIRST_CONTEXT 1
-#define has_context(pmap) ((pmap)->pm_ctxnum != EMPTY_CONTEXT)
+#define has_context(pmap) (((pmap)->pm_ctxnum != EMPTY_CONTEXT) == ((pmap) != kernel_pmap))
TAILQ_HEAD(context_tailq, context_state)
context_free_queue, context_active_queue;
Home |
Main Index |
Thread Index |
Old Index