From c4361adf2ac4aacc35d155184411dfdbcbab9efc Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 12 Apr 2002 05:17:15 +0000 Subject: [PATCH] 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. --- sys/ia64/ia64/machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index 5c734d6b7443..93817b918a89 100644 --- a/sys/ia64/ia64/machdep.c +++ b/sys/ia64/ia64/machdep.c @@ -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.