svn commit: r217709 - head/sys/arm/mv
Marcel Moolenaar
marcel at FreeBSD.org
Sat Jan 22 01:32:00 UTC 2011
Author: marcel
Date: Sat Jan 22 01:31:59 2011
New Revision: 217709
URL: http://svn.freebsd.org/changeset/base/217709
Log:
Fix r217688. We need to call init_param1() before we use msgbufsize,
now that the size of the message buffer is a tunable.
Modified:
head/sys/arm/mv/mv_machdep.c
Modified: head/sys/arm/mv/mv_machdep.c
==============================================================================
--- head/sys/arm/mv/mv_machdep.c Sat Jan 22 00:32:12 2011 (r217708)
+++ head/sys/arm/mv/mv_machdep.c Sat Jan 22 01:31:59 2011 (r217709)
@@ -434,6 +434,9 @@ initarm(void *mdp, void *unused __unused
valloc_pages(abtstack, ABT_STACK_SIZE);
valloc_pages(undstack, UND_STACK_SIZE);
valloc_pages(kernelstack, KSTACK_PAGES);
+
+ init_param1();
+
valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
/*
@@ -591,7 +594,6 @@ initarm(void *mdp, void *unused __unused
physmap_init();
/* Do basic tuning, hz etc */
- init_param1();
init_param2(physmem);
kdb_init();
return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP -
More information about the svn-src-head
mailing list