summaryrefslogtreecommitdiffstats
path: root/sys/pc98/pc98
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2011-01-21 10:26:26 +0000
committerpluknet <pluknet@FreeBSD.org>2011-01-21 10:26:26 +0000
commit5f536fc1d3dfb28e75a18d60bddcfacdf3f22617 (patch)
tree7eea8c732d50e7ebda3498e40f7ccad228cc1453 /sys/pc98/pc98
parent8309d738784bb61d488dbea96837e5d407437cfc (diff)
downloadFreeBSD-src-5f536fc1d3dfb28e75a18d60bddcfacdf3f22617.zip
FreeBSD-src-5f536fc1d3dfb28e75a18d60bddcfacdf3f22617.tar.gz
Make MSGBUF_SIZE kernel option a loader tunable kern.msgbufsize.
Submitted by: perryh pluto.rain.com (previous version) Reviewed by: jhb Approved by: kib (mentor) Tested by: universe
Diffstat (limited to 'sys/pc98/pc98')
-rw-r--r--sys/pc98/pc98/machdep.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 045f8e4..826bcc8 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$");
#include "opt_isa.h"
#include "opt_kstack_pages.h"
#include "opt_maxmem.h"
-#include "opt_msgbuf.h"
#include "opt_npx.h"
#include "opt_perfmon.h"
@@ -2066,7 +2065,7 @@ do_next:
* calculation, etc.).
*/
while (phys_avail[pa_indx - 1] + PAGE_SIZE +
- round_page(MSGBUF_SIZE) >= phys_avail[pa_indx]) {
+ round_page(msgbufsize) >= phys_avail[pa_indx]) {
physmem -= atop(phys_avail[pa_indx] - phys_avail[pa_indx - 1]);
phys_avail[pa_indx--] = 0;
phys_avail[pa_indx--] = 0;
@@ -2075,10 +2074,10 @@ do_next:
Maxmem = atop(phys_avail[pa_indx]);
/* Trim off space for the message buffer. */
- phys_avail[pa_indx] -= round_page(MSGBUF_SIZE);
+ phys_avail[pa_indx] -= round_page(msgbufsize);
/* Map the message buffer. */
- for (off = 0; off < round_page(MSGBUF_SIZE); off += PAGE_SIZE)
+ for (off = 0; off < round_page(msgbufsize); off += PAGE_SIZE)
pmap_kenter((vm_offset_t)msgbufp + off, phys_avail[pa_indx] +
off);
}
@@ -2293,7 +2292,7 @@ init386(first)
/* now running on new page tables, configured,and u/iom is accessible */
- msgbufinit(msgbufp, MSGBUF_SIZE);
+ msgbufinit(msgbufp, msgbufsize);
/* make a call gate to reenter kernel with */
gdp = &ldt[LSYS5CALLS_SEL].gd;
OpenPOWER on IntegriCloud