Fix MAXBUFCACHE changes.
authorrahnds <rahnds@openbsd.org>
Thu, 27 Feb 1997 23:40:18 +0000 (23:40 +0000)
committerrahnds <rahnds@openbsd.org>
Thu, 27 Feb 1997 23:40:18 +0000 (23:40 +0000)
sys/arch/powerpc/include/vmparam.h
sys/arch/powerpc/powerpc/machdep.c

index e35f937..f06f3d5 100644 (file)
@@ -90,6 +90,8 @@
 #define        VM_MAXUSER_ADDRESS      ((vm_offset_t)0xfffff000)
 #define        VM_MAX_ADDRESS          VM_MAXUSER_ADDRESS
 #define        VM_MIN_KERNEL_ADDRESS   ((vm_offset_t)(KERNEL_SR << ADDR_SR_SHFT))
+#define        VM_MAX_KERNEL_ADDRESS   ((vm_offset_t)((KERNEL_SR << ADDR_SR_SHFT) \
+                                               + SEGMENT_LENGTH))
 
 #define        VM_KMEM_SIZE            (NKMEMCLUSTERS * CLBYTES)
 #define        VM_MBUF_SIZE            (NMBCLUSTERS * CLBYTES)
index 0eb035e..2fb52d2 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: machdep.c,v 1.6 1997/02/24 12:50:28 deraadt Exp $     */
+/*     $OpenBSD: machdep.c,v 1.7 1997/02/27 23:40:19 rahnds Exp $      */
 /*     $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $   */
 
 /*
@@ -472,7 +472,7 @@ allocsys(v)
         * Decide on buffer space to use.
         */
        if (bufpages == 0)
-               bufpages = (physmem / ((100/BUFCACHEPERCENT) / CLSIZE);
+               bufpages = (physmem / ((100/BUFCACHEPERCENT) / CLSIZE));
        if (nbuf == 0) {
                nbuf = bufpages;
                if (nbuf < 16)