Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/arch/pc532/pc532 Apply patch (based on rev 1.47 of ...
details: https://anonhg.NetBSD.org/src/rev/96146ed3da4b
branches: netbsd-1-4
changeset: 470504:96146ed3da4b
user: he <he%NetBSD.org@localhost>
date: Wed Apr 26 22:15:16 2000 +0000
description:
Apply patch (based on rev 1.47 of pmap.c, requested by thorpej):
Use a more reliable method to determine if uvm_page_init() has
completed. This fixes a problem observed on some i386 configs
(typically with lots of memory) where the kernel page table needs
to grow during initialization.
diffstat:
sys/arch/pc532/pc532/pmap.new.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r c757fe3111ec -r 96146ed3da4b sys/arch/pc532/pc532/pmap.new.c
--- a/sys/arch/pc532/pc532/pmap.new.c Wed Apr 26 22:14:39 2000 +0000
+++ b/sys/arch/pc532/pc532/pmap.new.c Wed Apr 26 22:15:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.new.c,v 1.10.2.3 1999/06/18 16:58:56 perry Exp $ */
+/* $NetBSD: pmap.new.c,v 1.10.2.4 2000/04/26 22:15:16 he Exp $ */
/*
*
@@ -3390,7 +3390,7 @@
for (/*null*/ ; nkpde < needed_kpde ; nkpde++) {
- if (pmap_initialized == FALSE) {
+ if (uvm.page_init_done == FALSE) {
/*
* we're growing the kernel pmap early (from uvm_pageboot_alloc()).
* this case must be handled a little differently.
@@ -3405,6 +3405,12 @@
continue;
}
+ /*
+ * THIS *MUST* BE CODED SO AS TO WORK IN THE
+ * pmap_initialized == FALSE CASE! WE MAY BE
+ * INVOKED WHILE pmap_init() IS RUNNING!
+ */
+
pmap_alloc_ptp(kpm, PDSLOT_KERN + nkpde, FALSE);
kpm->pm_pdir[PDSLOT_KERN + nkpde] &= ~PG_u; /* PG_u not for kernel */
Home |
Main Index |
Thread Index |
Old Index