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:
parent
a783cc12f6
commit
c4361adf2a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user