summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-04-12 05:17:15 +0000
committerpeter <peter@FreeBSD.org>2002-04-12 05:17:15 +0000
commitc4361adf2ac4aacc35d155184411dfdbcbab9efc (patch)
tree7c858caf8d749b9c4b49029dce181eaee093ffc1 /sys/ia64
parenta783cc12f6b3f0b537743ba3dba72e347153226b (diff)
downloadFreeBSD-src-c4361adf2ac4aacc35d155184411dfdbcbab9efc.zip
FreeBSD-src-c4361adf2ac4aacc35d155184411dfdbcbab9efc.tar.gz
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.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index 5c734d6..93817b9 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.
OpenPOWER on IntegriCloud