Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Make kernel page faults wor...
details: https://anonhg.NetBSD.org/src/rev/66628e3dc485
branches: sommerfeld_i386mp_1
changeset: 482361:66628e3dc485
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Tue Jan 09 02:37:34 2001 +0000
description:
Make kernel page faults work again if !MULTIPROCESSOR
P_BIGLOCK only gets set in p_flags on a MULTIPROCESSOR kernel, so
only include that test under MULTIPROCESSOR
diffstat:
sys/arch/i386/i386/trap.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 36ba0431179a -r 66628e3dc485 sys/arch/i386/i386/trap.c
--- a/sys/arch/i386/i386/trap.c Tue Jan 09 01:36:06 2001 +0000
+++ b/sys/arch/i386/i386/trap.c Tue Jan 09 02:37:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.134.2.12 2001/01/07 22:59:25 sommerfeld Exp $ */
+/* $NetBSD: trap.c,v 1.134.2.13 2001/01/09 02:37:34 sommerfeld Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -350,12 +350,14 @@
if (simple_lock_held(&sched_lock))
goto we_re_toast;
#endif
+#ifdef MULTIPROCESSOR
/*
* process doing kernel-mode page fault must have
* been running with big lock held
*/
if ((p->p_flag & P_BIGLOCK) == 0)
goto we_re_toast;
+#endif
pcb = &p->p_addr->u_pcb;
/*
Home |
Main Index |
Thread Index |
Old Index