Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/machdep.c
| Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | |||||
| int _udatasel, _ucodesel, _ucode32sel, _ufssel, _ugssel; | int _udatasel, _ucodesel, _ucode32sel, _ufssel, _ugssel; | ||||
| int cold = 1; | int cold = 1; | ||||
| long Maxmem = 0; | long Maxmem = 0; | ||||
| long realmem = 0; | long realmem = 0; | ||||
| int late_console = 1; | int late_console = 1; | ||||
| int lass_enabled = 0; | |||||
| struct kva_md_info kmi; | struct kva_md_info kmi; | ||||
| struct region_descriptor r_idt; | struct region_descriptor r_idt; | ||||
| struct pcpu *__pcpu; | struct pcpu *__pcpu; | ||||
| struct pcpu temp_bsp_pcpu; | struct pcpu temp_bsp_pcpu; | ||||
| ▲ Show 20 Lines • Show All 1,134 Lines • ▼ Show 20 Lines | hammer_time(u_int64_t modulep, u_int64_t physfree) | ||||
| if ((cpu_feature2 & CPUID2_XSAVE) != 0) { | if ((cpu_feature2 & CPUID2_XSAVE) != 0) { | ||||
| use_xsave = 1; | use_xsave = 1; | ||||
| TUNABLE_INT_FETCH("hw.use_xsave", &use_xsave); | TUNABLE_INT_FETCH("hw.use_xsave", &use_xsave); | ||||
| } | } | ||||
| sched_instance_select(); | sched_instance_select(); | ||||
| link_elf_ireloc(); | link_elf_ireloc(); | ||||
markj: Why here and not in initializecpu(), where similar features like SMAP are enabled? | |||||
| /* | /* | ||||
| * This may be done better later if it gets more high level | * This may be done better later if it gets more high level | ||||
| * components in it. If so just link td->td_proc here. | * components in it. If so just link td->td_proc here. | ||||
| */ | */ | ||||
| proc_linkup0(&proc0, &thread0); | proc_linkup0(&proc0, &thread0); | ||||
| /* Init basic tunables, hz etc */ | /* Init basic tunables, hz etc */ | ||||
| init_param1(); | init_param1(); | ||||
| ▲ Show 20 Lines • Show All 585 Lines • Show Last 20 Lines | |||||
Why here and not in initializecpu(), where similar features like SMAP are enabled?