Home
last modified time | relevance | path

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

/xnu-8020.101.4/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.c556 LowExceptionVectorsAddr = (void *)ml_io_map(ml_vtophys((vm_offset_t)gPhysBase), PAGE_SIZE); in cpu_machine_idle_init()
566 (addr64_t)((unsigned int)(gPhysBase) + in cpu_machine_idle_init()
572 (addr64_t)((unsigned int)(gPhysBase) + in cpu_machine_idle_init()
576 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.c2141 vm_first_phys = gPhysBase; in pmap_bootstrap()
/xnu-8020.101.4/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-8020.101.4/osfmk/mach/arm/
H A Dvm_param.h294 extern unsigned long gVirtBase, gPhysBase, gPhysSize;
296 #define isphysmem(a) (((vm_address_t)(a) - gPhysBase) < gPhysSize)
/xnu-8020.101.4/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.c1148 (vm_object_offset_t) ((ptoa(VM_PAGE_GET_PHYS_PAGE(mem))) - gPhysBase); in pmap_enqueue_pages()
1450 mem = vm_page_lookup(pmap_object, (pa - gPhysBase)); in pmap_pages_free()
3492 if (((ranges[i].addr <= gPhysBase) && (rgn_end > gPhysBase)) || in pmap_compute_io_rgns()
3494 ((ranges[i].addr > gPhysBase) && (rgn_end < avail_end))) { in pmap_compute_io_rgns()
/xnu-8020.101.4/san/memory/
H A Dkasan-arm64.c63 extern unsigned long gVirtBase, gPhysBase;
/xnu-8020.101.4/osfmk/tests/
H A Dkernel_tests.c784 extern unsigned long gPhysBase, gPhysSize, first_avail;
843 T_ASSERT_GE_ULONG(lowGlo.lgStaticAddr, gPhysBase, NULL); in pmap_coredump_test()
866 T_ASSERT_GE_ULONG(pa, gPhysBase, NULL); in pmap_coredump_test()
867 T_ASSERT_LT_ULONG(pa, gPhysBase + gPhysSize, NULL); in pmap_coredump_test()
/xnu-8020.101.4/iokit/Kernel/
H A DIOLib.cpp638 extern unsigned long gPhysBase, gPhysSize;
682 if (maxPhys >= (mach_vm_address_t)(gPhysBase + gPhysSize)) { in IOKernelAllocateWithPhysicalRestrict()
H A DIOHibernateIO.cpp1926 extern unsigned long gPhysBase, gPhysSize; in hibernate_write_image()
1933 (physAddr >= gPhysBase) && in hibernate_write_image()
1934 (physAddr + size <= gPhysBase + gPhysSize)) { in hibernate_write_image()
/xnu-8020.101.4/tools/lldbmacros/
H A Dpmap.py1258 return (addr - unsigned(kern.globals.gVirtBase) + unsigned(kern.globals.gPhysBase))
/xnu-8020.101.4/libkern/c++/
H A DOSKext.cpp118 extern unsigned long gPhysBase;
1048 ml_static_mfree(ml_static_ptovirt(seg_kld->vmaddr - gVirtBase + gPhysBase), in removeKextBootstrap()
1058 ml_static_mfree(ml_static_ptovirt(seg_klddata->vmaddr - gVirtBase + gPhysBase), in removeKextBootstrap()
6698 …_t linkedit_vmaddr = ml_static_ptovirt((vm_offset_t)(linkeditseg->vmaddr - gVirtBase + gPhysBase)); in jettisonFileSetLinkeditSegment()