From bdece4f5145da84f9f2687b12049f1a05df9a18a Mon Sep 17 00:00:00 2001 From: rahnds Date: Thu, 27 Feb 1997 23:40:18 +0000 Subject: [PATCH] Fix MAXBUFCACHE changes. --- sys/arch/powerpc/include/vmparam.h | 2 ++ sys/arch/powerpc/powerpc/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/powerpc/include/vmparam.h b/sys/arch/powerpc/include/vmparam.h index e35f937122a..f06f3d536eb 100644 --- a/sys/arch/powerpc/include/vmparam.h +++ b/sys/arch/powerpc/include/vmparam.h @@ -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) diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c index 0eb035ec7fb..2fb52d23ba7 100644 --- a/sys/arch/powerpc/powerpc/machdep.c +++ b/sys/arch/powerpc/powerpc/machdep.c @@ -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) -- 2.20.1