Changeset View
Changeset View
Standalone View
Standalone View
head/sys/amd64/amd64/machdep.c
Show First 20 Lines • Show All 1,560 Lines • ▼ Show 20 Lines | hammer_time(u_int64_t modulep, u_int64_t physfree) | ||||
*/ | */ | ||||
proc_linkup0(&proc0, &thread0); | proc_linkup0(&proc0, &thread0); | ||||
kmdp = init_ops.parse_preload_data(modulep); | kmdp = init_ops.parse_preload_data(modulep); | ||||
identify_cpu1(); | identify_cpu1(); | ||||
identify_hypervisor(); | identify_hypervisor(); | ||||
/* link_elf_ireloc(kmdp); */ | |||||
/* Init basic tunables, hz etc */ | /* Init basic tunables, hz etc */ | ||||
init_param1(); | init_param1(); | ||||
thread0.td_kstack = physfree + KERNBASE; | thread0.td_kstack = physfree + KERNBASE; | ||||
thread0.td_kstack_pages = kstack_pages; | thread0.td_kstack_pages = kstack_pages; | ||||
kstack0_sz = thread0.td_kstack_pages * PAGE_SIZE; | kstack0_sz = thread0.td_kstack_pages * PAGE_SIZE; | ||||
bzero((void *)thread0.td_kstack, kstack0_sz); | bzero((void *)thread0.td_kstack, kstack0_sz); | ||||
physfree += kstack0_sz; | physfree += kstack0_sz; | ||||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | #endif | ||||
* This loses mainly printf()s in getmemsize() and early debugging. | * This loses mainly printf()s in getmemsize() and early debugging. | ||||
*/ | */ | ||||
late_console = 1; | late_console = 1; | ||||
TUNABLE_INT_FETCH("debug.late_console", &late_console); | TUNABLE_INT_FETCH("debug.late_console", &late_console); | ||||
if (!late_console) { | if (!late_console) { | ||||
cninit(); | cninit(); | ||||
amd64_kdb_init(); | amd64_kdb_init(); | ||||
} | } | ||||
link_elf_ireloc(kmdp); | |||||
getmemsize(kmdp, physfree); | getmemsize(kmdp, physfree); | ||||
init_param2(physmem); | init_param2(physmem); | ||||
/* now running on new page tables, configured,and u/iom is accessible */ | /* now running on new page tables, configured,and u/iom is accessible */ | ||||
if (late_console) | if (late_console) | ||||
cninit(); | cninit(); | ||||
▲ Show 20 Lines • Show All 871 Lines • Show Last 20 Lines |