Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/machdep.c
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
#include <sys/rwlock.h> | #include <sys/rwlock.h> | ||||
#include <sys/sched.h> | #include <sys/sched.h> | ||||
#include <sys/signalvar.h> | #include <sys/signalvar.h> | ||||
#include <sys/syscallsubr.h> | #include <sys/syscallsubr.h> | ||||
#include <sys/sysent.h> | #include <sys/sysent.h> | ||||
#include <sys/sysproto.h> | #include <sys/sysproto.h> | ||||
#include <sys/ucontext.h> | #include <sys/ucontext.h> | ||||
#include <sys/vdso.h> | #include <sys/vdso.h> | ||||
#include <sys/vmmeter.h> | |||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_param.h> | |||||
#include <vm/vm_kern.h> | #include <vm/vm_kern.h> | ||||
#include <vm/vm_object.h> | #include <vm/vm_object.h> | ||||
#include <vm/vm_page.h> | #include <vm/vm_page.h> | ||||
#include <vm/vm_phys.h> | |||||
#include <vm/pmap.h> | #include <vm/pmap.h> | ||||
#include <vm/vm_map.h> | #include <vm/vm_map.h> | ||||
#include <vm/vm_pager.h> | #include <vm/vm_pager.h> | ||||
#include <machine/armreg.h> | #include <machine/armreg.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/debug_monitor.h> | #include <machine/debug_monitor.h> | ||||
#include <machine/kdb.h> | #include <machine/kdb.h> | ||||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
return (boot_el == 2); | return (boot_el == 2); | ||||
} | } | ||||
static void | static void | ||||
cpu_startup(void *dummy) | cpu_startup(void *dummy) | ||||
{ | { | ||||
vm_paddr_t size; | |||||
int i; | |||||
printf("real memory = %ju (%ju MB)\n", ptoa((uintmax_t)realmem), | |||||
ptoa((uintmax_t)realmem) / 1024 / 1024); | |||||
if (bootverbose) { | |||||
printf("Physical memory chunk(s):\n"); | |||||
for (i = 0; phys_avail[i + 1] != 0; i += 2) { | |||||
size = phys_avail[i + 1] - phys_avail[i]; | |||||
printf("%#016jx - %#016jx, %ju bytes (%ju pages)\n", | |||||
(uintmax_t)phys_avail[i], | |||||
(uintmax_t)phys_avail[i + 1] - 1, | |||||
(uintmax_t)size, (uintmax_t)size / PAGE_SIZE); | |||||
} | |||||
} | |||||
printf("avail memory = %ju (%ju MB)\n", | |||||
ptoa((uintmax_t)vm_free_count()), | |||||
ptoa((uintmax_t)vm_free_count()) / 1024 / 1024); | |||||
undef_init(); | undef_init(); | ||||
install_cpu_errata(); | install_cpu_errata(); | ||||
vm_ksubmap_init(&kmi); | vm_ksubmap_init(&kmi); | ||||
bufinit(); | bufinit(); | ||||
vm_pager_bufferinit(); | vm_pager_bufferinit(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,169 Lines • Show Last 20 Lines |