Move tunable initialisation so it can get access to physmem.

This commit is contained in:
Benno Rice 2002-03-07 10:15:17 +00:00
parent d2c1f57685
commit 9164438ed2
2 changed files with 12 additions and 12 deletions

View File

@ -359,12 +359,6 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args)
*/
cninit();
/*
* Initialize tunables.
*/
init_param1();
init_param2(physmem);
/*
* XXX: Initialize the interrupt tables.
*/
@ -405,6 +399,12 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args)
ofmsr |= PSL_IR | PSL_DR;
pmap_bootstrap(startkernel, endkernel);
/*
* Initialize tunables.
*/
init_param1();
init_param2(physmem);
/*
* Finish setting up thread0.
*/

View File

@ -359,12 +359,6 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args)
*/
cninit();
/*
* Initialize tunables.
*/
init_param1();
init_param2(physmem);
/*
* XXX: Initialize the interrupt tables.
*/
@ -405,6 +399,12 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args)
ofmsr |= PSL_IR | PSL_DR;
pmap_bootstrap(startkernel, endkernel);
/*
* Initialize tunables.
*/
init_param1();
init_param2(physmem);
/*
* Finish setting up thread0.
*/