From 165e0ac05b17a344d8bc192043edd721624b631d Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 8 Mar 2004 00:16:52 +0000 Subject: [PATCH] MFi386: set initial curpcb pcpu variable at startup time rather than waiting for a context switch --- sys/amd64/amd64/machdep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 3f0b15948809..341da8e7dd57 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -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]); /*