summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-02-22 20:08:17 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-02-22 20:08:17 +0000
commite284a8b6575a17c7e509e71c80b67fff443e6100 (patch)
treeaca2271f7e56d887b8eacb8b6c8d7ed0e3df8125 /sys
parent50d2294e6404463c2666af3a00be6f5ebc6bef70 (diff)
blah, blah, blah, msgbuf
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/machdep.c5
-rw-r--r--sys/arch/hppa/include/param.h6
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index c500f75529c..44b14c0e516 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.21 2000/02/09 05:04:22 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.22 2000/02/22 20:08:15 mickey Exp $ */
/*
* Copyright (c) 1999-2000 Michael Shalayeff
@@ -338,8 +338,7 @@ hppa_init(start)
physmem = totalphysmem - btoc(vstart);
/* alloc msgbuf */
- if (!(msgbufp = (void *)pmap_steal_memory(sizeof(struct msgbuf),
- NULL, NULL)))
+ if (!(msgbufp = (void *)pmap_steal_memory(MSGBUFSIZE, NULL, NULL)))
panic("cannot allocate msgbuf");
msgbufmapped = 1;
diff --git a/sys/arch/hppa/include/param.h b/sys/arch/hppa/include/param.h
index 2b252039214..27bb2f91b7d 100644
--- a/sys/arch/hppa/include/param.h
+++ b/sys/arch/hppa/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.8 1999/12/17 01:58:46 mickey Exp $ */
+/* $OpenBSD: param.h,v 1.9 2000/02/22 20:08:16 mickey Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -78,6 +78,10 @@
#define UPAGES (1<<USHIFT) /* pages of u-area */
#define USPACE (UPAGES * NBPG) /* pages for user struct and kstack */
+#ifndef MSGBUFSIZE
+#define MSGBUFSIZE 2*NBPG /* default message buffer size */
+#endif
+
/*
* Constants related to network buffer management.
* MCLBYTES must be no larger than CLBYTES (the software page size), and,