Add a call to init_param() to initialize some necessary variables.
This commit is contained in:
parent
962922dcd2
commit
351bd3334f
@ -436,6 +436,9 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args)
|
|||||||
globaldata_init(globalp, 0, sizeof(struct globaldata));
|
globaldata_init(globalp, 0, sizeof(struct globaldata));
|
||||||
__asm ("mtsprg 0, %0" :: "r"(globalp));
|
__asm ("mtsprg 0, %0" :: "r"(globalp));
|
||||||
|
|
||||||
|
/* Init basic tunables, hz etc */
|
||||||
|
init_param();
|
||||||
|
|
||||||
/* setup curproc so the mutexes work */
|
/* setup curproc so the mutexes work */
|
||||||
|
|
||||||
PCPU_SET(curthread, thread0);
|
PCPU_SET(curthread, thread0);
|
||||||
|
@ -436,6 +436,9 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args)
|
|||||||
globaldata_init(globalp, 0, sizeof(struct globaldata));
|
globaldata_init(globalp, 0, sizeof(struct globaldata));
|
||||||
__asm ("mtsprg 0, %0" :: "r"(globalp));
|
__asm ("mtsprg 0, %0" :: "r"(globalp));
|
||||||
|
|
||||||
|
/* Init basic tunables, hz etc */
|
||||||
|
init_param();
|
||||||
|
|
||||||
/* setup curproc so the mutexes work */
|
/* setup curproc so the mutexes work */
|
||||||
|
|
||||||
PCPU_SET(curthread, thread0);
|
PCPU_SET(curthread, thread0);
|
||||||
|
Loading…
Reference in New Issue
Block a user