summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-27 23:40:20 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-27 23:40:20 +0000
commitefd9d144190ada0b2fbd04953d35db90927b0fc5 (patch)
tree4d0bc7f63cb0c46f008c46da0580d36448ccc5b3 /sys/arch/powerpc
parent786b8f777bbbbfb8398d28d7ecc3f5b9af405c4c (diff)
Fix MAXBUFCACHE changes.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/include/vmparam.h2
-rw-r--r--sys/arch/powerpc/powerpc/machdep.c4
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)