summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-03-30 07:17:05 +0000
committerpeter <peter@FreeBSD.org>2000-03-30 07:17:05 +0000
commit7f3e149212abaea502b1815e03809f8697c2bfc7 (patch)
tree05bff4ab78325496ace5f3182e7fdecf4e9ca4c3 /sys/pc98
parent64a882c3a4eff3ae2cef0d122a0bbb325033ae9e (diff)
downloadFreeBSD-src-7f3e149212abaea502b1815e03809f8697c2bfc7.zip
FreeBSD-src-7f3e149212abaea502b1815e03809f8697c2bfc7.tar.gz
Make sysv-style shared memory tuneable params fully runtime adjustable
via sysctl. It's done pretty simply but it should be quite adequate. Also move SHMMAXPGS from $machine/include/vmparam.h as the comments that went with it were wrong... we don't allocate KVM space for the pages so that comment is bogus.. The only practical limit is how much physical ram you want to lock up as this stuff isn't paged out or swap backed.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c7
-rw-r--r--sys/pc98/pc98/machdep.c7
2 files changed, 0 insertions, 14 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 38a976e..d6d3691 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -73,10 +73,6 @@
#include <sys/vmmeter.h>
#include <sys/bus.h>
-#ifdef SYSVSHM
-#include <sys/shm.h>
-#endif
-
#ifdef SYSVMSG
#include <sys/msg.h>
#endif
@@ -342,9 +338,6 @@ again:
valloc(callout, struct callout, ncallout);
valloc(callwheel, struct callout_tailq, callwheelsize);
-#ifdef SYSVSHM
- valloc(shmsegs, struct shmid_ds, shminfo.shmmni);
-#endif
#ifdef SYSVSEM
valloc(sema, struct semid_ds, seminfo.semmni);
valloc(sem, struct sem, seminfo.semmns);
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 38a976e..d6d3691 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -73,10 +73,6 @@
#include <sys/vmmeter.h>
#include <sys/bus.h>
-#ifdef SYSVSHM
-#include <sys/shm.h>
-#endif
-
#ifdef SYSVMSG
#include <sys/msg.h>
#endif
@@ -342,9 +338,6 @@ again:
valloc(callout, struct callout, ncallout);
valloc(callwheel, struct callout_tailq, callwheelsize);
-#ifdef SYSVSHM
- valloc(shmsegs, struct shmid_ds, shminfo.shmmni);
-#endif
#ifdef SYSVSEM
valloc(sema, struct semid_ds, seminfo.semmni);
valloc(sem, struct sem, seminfo.semmns);
OpenPOWER on IntegriCloud