Really fix uniprocessor on IA64. Note to self: do not use variables before

they are initialized.   I had correctly figured out that the UP problem was
the pcpu current_pmap thing, but didn't fix it right last time.
This commit is contained in:
peter 2002-04-12 05:17:15 +00:00
parent a783cc12f6
commit c4361adf2a

View File

@ -669,7 +669,6 @@ ia64_init(u_int64_t arg1, u_int64_t arg2)
*/
pcpup = (struct pcpu *) pmap_steal_memory(PAGE_SIZE);
pcpu_init(pcpup, 0, PAGE_SIZE);
pcpup->pc_current_pmap = kernel_pmap;
ia64_set_k4((u_int64_t) pcpup);
PCPU_SET(curthread, &thread0);
@ -695,6 +694,7 @@ ia64_init(u_int64_t arg1, u_int64_t arg2)
* Initialize the virtual memory system.
*/
pmap_bootstrap();
pcpup->pc_current_pmap = kernel_pmap;
/*
* Initialize debuggers, and break into them if appropriate.