MFi386: set initial curpcb pcpu variable at startup time rather than

waiting for a context switch
This commit is contained in:
peter 2004-03-08 00:16:52 +00:00
parent 8726a719b8
commit 692fcef36a

View File

@ -1162,6 +1162,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
pcpu_init(pc, 0, sizeof(struct pcpu));
PCPU_SET(prvspace, pc);
PCPU_SET(curthread, &thread0);
PCPU_SET(curpcb, thread0.td_pcb);
PCPU_SET(tssp, &common_tss[0]);
/*