diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-01-21 10:26:26 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-01-21 10:26:26 +0000 |
commit | 5f536fc1d3dfb28e75a18d60bddcfacdf3f22617 (patch) | |
tree | 7eea8c732d50e7ebda3498e40f7ccad228cc1453 /sys/arm/xscale/i80321/ep80219_machdep.c | |
parent | 8309d738784bb61d488dbea96837e5d407437cfc (diff) | |
download | FreeBSD-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/arm/xscale/i80321/ep80219_machdep.c')
-rw-r--r-- | sys/arm/xscale/i80321/ep80219_machdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arm/xscale/i80321/ep80219_machdep.c b/sys/arm/xscale/i80321/ep80219_machdep.c index ed77995..016da7f 100644 --- a/sys/arm/xscale/i80321/ep80219_machdep.c +++ b/sys/arm/xscale/i80321/ep80219_machdep.c @@ -45,8 +45,6 @@ * Created : 17/09/94 */ -#include "opt_msgbuf.h" - #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -247,7 +245,7 @@ initarm(void *arg, void *arg2) valloc_pages(undstack, UND_STACK_SIZE); valloc_pages(kernelstack, KSTACK_PAGES); alloc_pages(minidataclean.pv_pa, 1); - valloc_pages(msgbufpv, round_page(MSGBUF_SIZE) / PAGE_SIZE); + valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE); #ifdef ARM_USE_SMALL_ALLOC freemempos -= PAGE_SIZE; freemem_pt = trunc_page(freemem_pt); @@ -397,7 +395,7 @@ initarm(void *arg, void *arg2) pmap_bootstrap(pmap_curmaxkvaddr, 0xd0000000, &kernel_l1pt); msgbufp = (void*)msgbufpv.pv_va; - msgbufinit(msgbufp, MSGBUF_SIZE); + msgbufinit(msgbufp, msgbufsize); mutex_init(); i = 0; |