From 692fcef36a19584fa7c25a42560deb66711734d9 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 8 Mar 2004 00:16:52 +0000 Subject: 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(+) (limited to 'sys') diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 3f0b159..341da8e 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]); /* -- cgit v1.1