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/i386/i386 Apply patch (based on revision 1.81 ...



details:   https://anonhg.NetBSD.org/src/rev/5999ab7a4fab
branches:  netbsd-1-4
changeset: 469899:5999ab7a4fab
user:      he <he%NetBSD.org@localhost>
date:      Mon Dec 20 13:31:41 1999 +0000

description:
Apply patch (based on revision 1.81 of pmap.c, requested by drochner):
  Allow booting of kernels which are larger than 16MB on i386.

diffstat:

 sys/arch/i386/i386/pmap.new.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6c68f4370265 -r 5999ab7a4fab sys/arch/i386/i386/pmap.new.c
--- a/sys/arch/i386/i386/pmap.new.c     Mon Dec 20 13:30:31 1999 +0000
+++ b/sys/arch/i386/i386/pmap.new.c     Mon Dec 20 13:31:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.new.c,v 1.23.2.3 1999/06/18 16:57:15 perry Exp $  */
+/*     $NetBSD: pmap.new.c,v 1.23.2.4 1999/12/20 13:31:41 he Exp $     */
 
 /*
  *
@@ -949,7 +949,8 @@
     uvm_page_physload(atop(avail_start), atop(hole_start),
                      atop(avail_start), atop(hole_start), first16q);
 
-  if (first16q == VM_FREELIST_FIRST16) {
+  if (first16q != VM_FREELIST_DEFAULT &&
+      hole_end < 16 * 1024 * 1024) {
     uvm_page_physload(atop(hole_end), atop(16 * 1024 * 1024),
                      atop(hole_end), atop(16 * 1024 * 1024), first16q);
     uvm_page_physload(atop(16 * 1024 * 1024), atop(avail_end),
@@ -957,7 +958,7 @@
                      VM_FREELIST_DEFAULT);
   } else {
     uvm_page_physload(atop(hole_end), atop(avail_end), 
-                     atop(hole_end), atop(avail_end), first16q);
+                     atop(hole_end), atop(avail_end), VM_FREELIST_DEFAULT);
   }
   
   /*



Home | Main Index | Thread Index | Old Index