Home
last modified time | relevance | path

Searched refs:gPhysBase (Results 1 – 17 of 17) sorted by relevance

/xnu-8019.80.24/osfmk/arm/
H A Darm_vm_init.c85 unsigned long gVirtBase, gPhysBase, gPhysSize; /* Used by <mach/arm/vm_param.h> */ variable
176 return pa - gPhysBase + gVirtBase; in phystokv()
191 pa = va - gVirtBase + gPhysBase; in arm_vm_page_granular_helper()
218 assert((start - gVirtBase + gPhysBase) >= gPhysBase); in arm_vm_page_granular_helper()
418 gPhysBase = args->physBase; in arm_vm_init()
454 tte = &cpu_tte[ttenum(gPhysBase)]; in arm_vm_init()
455 tte_limit = &cpu_tte[ttenum(gPhysBase + gPhysSize)]; in arm_vm_init()
458 if (gPhysBase < gVirtBase) { in arm_vm_init()
459 if (gPhysBase + gPhysSize > gVirtBase) { in arm_vm_init()
463 if (gPhysBase < gVirtBase + gPhysSize) { in arm_vm_init()
[all …]
H A Dcpu.c552 LowExceptionVectorsAddr = (void *)ml_io_map(ml_vtophys((vm_offset_t)gPhysBase), PAGE_SIZE); in cpu_machine_idle_init()
562 (addr64_t)((unsigned int)(gPhysBase) + in cpu_machine_idle_init()
568 (addr64_t)((unsigned int)(gPhysBase) + in cpu_machine_idle_init()
572 CleanPoC_DcacheRegion((vm_offset_t) phystokv(gPhysBase), PAGE_SIZE); in cpu_machine_idle_init()
H A Dglobals_asm.h33 LOAD_ADDR_GEN_DEF(gPhysBase)
H A Dmachine_routines.c758 return (vm_address_t)(vaddr) - gVirtBase + gPhysBase; in ml_static_vtop()
771 vm_size_t len = gPhysSize - (pa - gPhysBase); in phystokv_range()
775 assertf((pa - gPhysBase) < gPhysSize, "%s: illegal PA: 0x%lx", __func__, (unsigned long)pa); in phystokv_range()
776 return pa - gPhysBase + gVirtBase; in phystokv_range()
H A Dcaches_asm.s369 LOAD_ADDR(r2, gPhysBase)
H A Dpmap.c2125 vm_first_phys = gPhysBase; in pmap_bootstrap()
/xnu-8019.80.24/osfmk/arm64/
H A Darm_vm_init.c127 SECURITY_READ_ONLY_LATE(unsigned long) gPhysBase;
364 if (__improbable((pa < gPhysBase) || ((pa - gPhysBase) >= real_phys_size))) { in phystokv()
366 (unsigned long long)pa, (unsigned long long)gPhysBase, (unsigned long long)real_phys_size); in phystokv()
368 return pa - gPhysBase + gVirtBase; in phystokv()
388 if (__improbable((pa < gPhysBase) || ((pa - gPhysBase) >= real_phys_size))) { in phystokv_range()
390 (unsigned long long)pa, (unsigned long long)gPhysBase, (unsigned long long)real_phys_size); in phystokv_range()
392 return pa - gPhysBase + gVirtBase; in phystokv_range()
407 return (vm_address_t)(va) - gVirtBase + gPhysBase; in ml_static_vtop()
981 pa = va - gVirtBase + gPhysBase - pa_offset; in arm_vm_page_granular_helper()
1013 assert((start - gVirtBase + gPhysBase - pa_offset) >= gPhysBase); in arm_vm_page_granular_helper()
[all …]
H A Dhibernate_arm64.c102 set_dram_range(&dram_ranges[0], gPhysBase, gPhysSize); in hibernate_page_list_allocate()
259 gHibernateGlobals.kernelSlide = gVirtBase - gPhysBase; in pal_hib_init()
/xnu-8019.80.24/osfmk/mach/arm/
H A Dvm_param.h299 extern unsigned long gVirtBase, gPhysBase, gPhysSize;
301 #define isphysmem(a) (((vm_address_t)(a) - gPhysBase) < gPhysSize)
/xnu-8019.80.24/osfmk/arm/pmap/
H A Dpmap_ppl_interface.c147 mem = vm_page_lookup(pmap_object, (pa - gPhysBase)); in pmap_release_ppl_pages_to_kernel()
H A Dpmap_data.c1144 (vm_object_offset_t) ((ptoa(VM_PAGE_GET_PHYS_PAGE(mem))) - gPhysBase); in pmap_enqueue_pages()
1446 mem = vm_page_lookup(pmap_object, (pa - gPhysBase)); in pmap_pages_free()
3460 if (((ranges[i].addr <= gPhysBase) && (rgn_end > gPhysBase)) || in pmap_compute_io_rgns()
3462 ((ranges[i].addr > gPhysBase) && (rgn_end < avail_end))) { in pmap_compute_io_rgns()
/xnu-8019.80.24/san/memory/
H A Dkasan-arm64.c63 extern unsigned long gVirtBase, gPhysBase;
/xnu-8019.80.24/iokit/Kernel/
H A DIOLib.cpp628 extern unsigned long gPhysBase, gPhysSize;
672 if (maxPhys >= (mach_vm_address_t)(gPhysBase + gPhysSize)) { in IOKernelAllocateWithPhysicalRestrict()
H A DIOHibernateIO.cpp1924 extern unsigned long gPhysBase, gPhysSize; in hibernate_write_image()
1931 (physAddr >= gPhysBase) && in hibernate_write_image()
1932 (physAddr + size <= gPhysBase + gPhysSize)) { in hibernate_write_image()
/xnu-8019.80.24/osfmk/tests/
H A Dkernel_tests.c781 extern unsigned long gPhysBase, gPhysSize, first_avail;
840 T_ASSERT_GE_ULONG(lowGlo.lgStaticAddr, gPhysBase, NULL); in pmap_coredump_test()
863 T_ASSERT_GE_ULONG(pa, gPhysBase, NULL); in pmap_coredump_test()
864 T_ASSERT_LT_ULONG(pa, gPhysBase + gPhysSize, NULL); in pmap_coredump_test()
/xnu-8019.80.24/tools/lldbmacros/
H A Dpmap.py1253 return (addr - unsigned(kern.globals.gVirtBase) + unsigned(kern.globals.gPhysBase))
/xnu-8019.80.24/libkern/c++/
H A DOSKext.cpp118 extern unsigned long gPhysBase;
1047 ml_static_mfree(ml_static_ptovirt(seg_kld->vmaddr - gVirtBase + gPhysBase), in removeKextBootstrap()
1057 ml_static_mfree(ml_static_ptovirt(seg_klddata->vmaddr - gVirtBase + gPhysBase), in removeKextBootstrap()
6699 …_t linkedit_vmaddr = ml_static_ptovirt((vm_offset_t)(linkeditseg->vmaddr - gVirtBase + gPhysBase)); in jettisonFileSetLinkeditSegment()