Changeset View
Changeset View
Standalone View
Standalone View
head/sys/i386/i386/machdep.c
Show First 20 Lines • Show All 2,499 Lines • ▼ Show 20 Lines | #endif | ||||
_udatasel = GSEL(GUDATA_SEL, SEL_UPL); | _udatasel = GSEL(GUDATA_SEL, SEL_UPL); | ||||
/* setup proc 0's pcb */ | /* setup proc 0's pcb */ | ||||
thread0.td_pcb->pcb_flags = 0; | thread0.td_pcb->pcb_flags = 0; | ||||
thread0.td_pcb->pcb_cr3 = pmap_get_kcr3(); | thread0.td_pcb->pcb_cr3 = pmap_get_kcr3(); | ||||
thread0.td_pcb->pcb_ext = 0; | thread0.td_pcb->pcb_ext = 0; | ||||
thread0.td_frame = &proc0_tf; | thread0.td_frame = &proc0_tf; | ||||
cpu_probe_amdc1e(); | |||||
#ifdef FDT | #ifdef FDT | ||||
x86_init_fdt(); | x86_init_fdt(); | ||||
#endif | #endif | ||||
/* Location of kernel stack for locore */ | /* Location of kernel stack for locore */ | ||||
return ((register_t)thread0.td_pcb); | return ((register_t)thread0.td_pcb); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 741 Lines • Show Last 20 Lines |