mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Change order of pcpu initialization so the pc_prvspace is set
MFC after: 1 month
This commit is contained in:
parent
6cf8efdc48
commit
425eaba985
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183132
@ -558,11 +558,11 @@ start_all_aps(void)
|
||||
|
||||
/* Get per-cpu data */
|
||||
pc = &__pcpu[bootAP];
|
||||
pcpu_init(pc, bootAP, sizeof(struct pcpu));
|
||||
pc->pc_apic_id = cpu_apic_ids[bootAP];
|
||||
pc->pc_prvspace = pc;
|
||||
pc->pc_curthread = 0;
|
||||
|
||||
pcpu_init(pc, bootAP, sizeof(struct pcpu));
|
||||
gdt_segs[GPRIV_SEL].ssd_base = (int) pc;
|
||||
gdt_segs[GPROC0_SEL].ssd_base = (int) &pc->pc_common_tss;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user