Add a call to init_param() to initialize some necessary variables.

This commit is contained in:
Mark Peek 2001-10-08 00:44:21 +00:00
parent 962922dcd2
commit 351bd3334f
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);