- Move dpcpu initialization to mips_proc0_init. It's

more appropriate place for it. Besides dpcpu_init
    requires pmap module to be initialized and calling it
    int pmap.c hangs the system
This commit is contained in:
Oleksandr Tymoshenko 2009-07-07 19:55:09 +00:00
parent 4d33e6554c
commit b661054728
2 changed files with 3 additions and 3 deletions

View File

@ -274,6 +274,9 @@ mips_proc0_init(void)
(thread0.td_kstack_pages - 1) * PAGE_SIZE) - 1;
thread0.td_frame = &thread0.td_pcb->pcb_regs;
/* Steal memory for the dynamic per-cpu area. */
dpcpu_init((void *)pmap_steal_memory(DPCPU_SIZE), 0);
/*
* There is no need to initialize md_upte array for thread0 as it's
* located in .bss section and should be explicitly zeroed during

View File

@ -332,9 +332,6 @@ pmap_bootstrap(void)
msgbufp = (struct msgbuf *)pmap_steal_memory(MSGBUF_SIZE);
msgbufinit(msgbufp, MSGBUF_SIZE);
/* Steal memory for the dynamic per-cpu area. */
dpcpu_init((void *)pmap_steal_memory(DPCPU_SIZE), 0);
/*
* Steal thread0 kstack.
*/