mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
MFi386: set initial curpcb pcpu variable at startup time rather than
waiting for a context switch
This commit is contained in:
parent
c60df69fb2
commit
165e0ac05b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126732
@ -1162,6 +1162,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
|
|||||||
pcpu_init(pc, 0, sizeof(struct pcpu));
|
pcpu_init(pc, 0, sizeof(struct pcpu));
|
||||||
PCPU_SET(prvspace, pc);
|
PCPU_SET(prvspace, pc);
|
||||||
PCPU_SET(curthread, &thread0);
|
PCPU_SET(curthread, &thread0);
|
||||||
|
PCPU_SET(curpcb, thread0.td_pcb);
|
||||||
PCPU_SET(tssp, &common_tss[0]);
|
PCPU_SET(tssp, &common_tss[0]);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user