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/sparc64 | |
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/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 3 | ||||
-rw-r--r-- | sys/sparc64/sparc64/pmap.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index 0a40bad..e9a1102 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$"); #include "opt_compat.h" #include "opt_ddb.h" #include "opt_kstack_pages.h" -#include "opt_msgbuf.h" #include <sys/param.h> #include <sys/malloc.h> @@ -581,7 +580,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) * buffer (after setting the trap table). */ dpcpu_init(dpcpu0, 0); - msgbufinit(msgbufp, MSGBUF_SIZE); + msgbufinit(msgbufp, msgbufsize); /* * Initialize mutexes. diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index a52d53e..317df3b 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -66,7 +66,6 @@ __FBSDID("$FreeBSD$"); */ #include "opt_kstack_pages.h" -#include "opt_msgbuf.h" #include "opt_pmap.h" #include <sys/param.h> @@ -439,7 +438,7 @@ pmap_bootstrap(u_int cpu_impl) /* * Allocate and map the message buffer. */ - pa = pmap_bootstrap_alloc(MSGBUF_SIZE, colors); + pa = pmap_bootstrap_alloc(msgbufsize, colors); msgbufp = (struct msgbuf *)TLB_PHYS_TO_DIRECT(pa); /* |