mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
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.
This commit is contained in:
parent
c4527df028
commit
c302e53c27
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92865
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue