Fix r217688. We need to call init_param1() before we use msgbufsize,
now that the size of the message buffer is a tunable.
This commit is contained in:
parent
4cdbe2b967
commit
b2b953afee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217709
@ -434,6 +434,9 @@ initarm(void *mdp, void *unused __unused)
|
|||||||
valloc_pages(abtstack, ABT_STACK_SIZE);
|
valloc_pages(abtstack, ABT_STACK_SIZE);
|
||||||
valloc_pages(undstack, UND_STACK_SIZE);
|
valloc_pages(undstack, UND_STACK_SIZE);
|
||||||
valloc_pages(kernelstack, KSTACK_PAGES);
|
valloc_pages(kernelstack, KSTACK_PAGES);
|
||||||
|
|
||||||
|
init_param1();
|
||||||
|
|
||||||
valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
|
valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -591,7 +594,6 @@ initarm(void *mdp, void *unused __unused)
|
|||||||
physmap_init();
|
physmap_init();
|
||||||
|
|
||||||
/* Do basic tuning, hz etc */
|
/* Do basic tuning, hz etc */
|
||||||
init_param1();
|
|
||||||
init_param2(physmem);
|
init_param2(physmem);
|
||||||
kdb_init();
|
kdb_init();
|
||||||
return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP -
|
return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP -
|
||||||
|
Loading…
Reference in New Issue
Block a user