diff options
author | 2000-02-22 20:08:15 +0000 | |
---|---|---|
committer | 2000-02-22 20:08:15 +0000 | |
commit | 7799ea69ec129f591b848f299d497e14ef7ce31b (patch) | |
tree | ccb7d971ae8edb312e5d7a67804ee2b8f128f305 | |
parent | sync (diff) | |
download | wireguard-openbsd-7799ea69ec129f591b848f299d497e14ef7ce31b.tar.xz wireguard-openbsd-7799ea69ec129f591b848f299d497e14ef7ce31b.zip |
blah, blah, blah, msgbuf
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 5 | ||||
-rw-r--r-- | sys/arch/hppa/include/param.h | 6 |
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, |