Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/machdep.c
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
#include <vm/vm_page.h> | #include <vm/vm_page.h> | ||||
#include <vm/vm_pager.h> | #include <vm/vm_pager.h> | ||||
#include <machine/acle-compat.h> | #include <machine/acle-compat.h> | ||||
#include <machine/armreg.h> | #include <machine/armreg.h> | ||||
#include <machine/atags.h> | #include <machine/atags.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/cpuinfo.h> | #include <machine/cpuinfo.h> | ||||
#include <machine/debug_monitor.h> | |||||
#include <machine/devmap.h> | #include <machine/devmap.h> | ||||
#include <machine/frame.h> | #include <machine/frame.h> | ||||
#include <machine/intr.h> | #include <machine/intr.h> | ||||
#include <machine/machdep.h> | #include <machine/machdep.h> | ||||
#include <machine/md_var.h> | #include <machine/md_var.h> | ||||
#include <machine/metadata.h> | #include <machine/metadata.h> | ||||
#include <machine/pcb.h> | #include <machine/pcb.h> | ||||
#include <machine/physmem.h> | #include <machine/physmem.h> | ||||
▲ Show 20 Lines • Show All 1,391 Lines • ▼ Show 20 Lines | #define alloc_pages(var, np) \ | ||||
* | * | ||||
* Prepare the list of physical memory available to the vm subsystem. | * Prepare the list of physical memory available to the vm subsystem. | ||||
*/ | */ | ||||
arm_physmem_exclude_region(abp->abp_physaddr, | arm_physmem_exclude_region(abp->abp_physaddr, | ||||
(virtual_avail - KERNVIRTADDR), EXFLAG_NOALLOC); | (virtual_avail - KERNVIRTADDR), EXFLAG_NOALLOC); | ||||
arm_physmem_init_kernel_globals(); | arm_physmem_init_kernel_globals(); | ||||
init_param2(physmem); | init_param2(physmem); | ||||
dbg_monitor_init(); | |||||
kdb_init(); | kdb_init(); | ||||
return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP - | return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP - | ||||
sizeof(struct pcb))); | sizeof(struct pcb))); | ||||
} | } | ||||
#else /* !ARM_NEW_PMAP */ | #else /* !ARM_NEW_PMAP */ | ||||
void * | void * | ||||
initarm(struct arm_boot_params *abp) | initarm(struct arm_boot_params *abp) | ||||
▲ Show 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | #endif | ||||
*/ | */ | ||||
arm_physmem_exclude_region(abp->abp_physaddr, | arm_physmem_exclude_region(abp->abp_physaddr, | ||||
pmap_preboot_get_pages(0) - abp->abp_physaddr, EXFLAG_NOALLOC); | pmap_preboot_get_pages(0) - abp->abp_physaddr, EXFLAG_NOALLOC); | ||||
arm_physmem_init_kernel_globals(); | arm_physmem_init_kernel_globals(); | ||||
init_param2(physmem); | init_param2(physmem); | ||||
/* Init message buffer. */ | /* Init message buffer. */ | ||||
msgbufinit(msgbufp, msgbufsize); | msgbufinit(msgbufp, msgbufsize); | ||||
dbg_monitor_init(); | |||||
kdb_init(); | kdb_init(); | ||||
return ((void *)STACKALIGN(thread0.td_pcb)); | return ((void *)STACKALIGN(thread0.td_pcb)); | ||||
} | } | ||||
#endif /* !ARM_NEW_PMAP */ | #endif /* !ARM_NEW_PMAP */ | ||||
#endif /* FDT */ | #endif /* FDT */ |