diff options
author | peter <peter@FreeBSD.org> | 2004-03-08 00:16:52 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-03-08 00:16:52 +0000 |
commit | 692fcef36a19584fa7c25a42560deb66711734d9 (patch) | |
tree | 24d15d6659660fcd97094876c7e11be90b62dd5a /sys | |
parent | 8726a719b864cd4e9d211ab507423cfa1d0cb632 (diff) | |
download | FreeBSD-src-692fcef36a19584fa7c25a42560deb66711734d9.zip FreeBSD-src-692fcef36a19584fa7c25a42560deb66711734d9.tar.gz |
MFi386: set initial curpcb pcpu variable at startup time rather than
waiting for a context switch
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
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]); /* |