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:
Peter Wemm 2002-03-21 07:41:02 +00:00
parent c4527df028
commit c302e53c27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92865

View File

@ -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);
/*