diff options
author | peter <peter@FreeBSD.org> | 2002-03-21 07:41:02 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-03-21 07:41:02 +0000 |
commit | b460095c1d66da87440e518a58c6d3797edafba1 (patch) | |
tree | 632ed37be42de739142edeb6b2d29a6ed6ede167 /sys/ia64 | |
parent | e18cd1e9c78df9e17ad247dfbdd8580dfee46753 (diff) | |
download | FreeBSD-src-b460095c1d66da87440e518a58c6d3797edafba1.zip FreeBSD-src-b460095c1d66da87440e518a58c6d3797edafba1.tar.gz |
In UP mode, the primary cpu's per-cpu current_pmap was not initialized -
this was only done as a side effect of calling cpu_mp_start(). I haven't
actually tested that this fixes UP kernels, but it feels about right.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/machdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index 230a188..05f1c71 100644 --- a/sys/ia64/ia64/machdep.c +++ b/sys/ia64/ia64/machdep.c @@ -665,6 +665,7 @@ 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); /* |