24 #define OS_PAGE_SIZE (128 * 1024)
40 uint32_t virtualAddress,
122 uint32_t physicalAddress,
void OSGetAvailPhysAddrRange(uint32_t *outPhysicalAddress, uint32_t *outSize)
Gets the range of available physical memory (not reserved for app code or data).
void OSGetMapVirtAddrRange(uint32_t *outVirtualAddress, uint32_t *outSize)
Gets the range of virtual addresses available for mapping.
uint32_t __OSPhysicalToEffectiveUncached(uint32_t physicalAddress)
void OSGetDataPhysAddrRange(uint32_t *outPhysicalAddress, uint32_t *outSize)
Gets the range of physical memory used for the application's data.
OSMemoryMapMode OSQueryVirtAddr(uint32_t virtualAddress)
Determines the status of the given virtual memory address - mapped read-write or read-only,...
BOOL OSUnmapMemory(uint32_t virtualAddress, uint32_t size)
Unmaps previously mapped memory.
uint32_t OSEffectiveToPhysical(uint32_t virtualAddress)
BOOL __OSValidateAddressSpaceRange(int, uint32_t virtualAddress, uint32_t size)
BOOL OSIsAddressValid(uint32_t virtualAddress)
BOOL OSMapMemory(uint32_t virtualAddress, uint32_t physicalAddress, uint32_t size, OSMemoryMapMode mode)
Maps a physical address to a virtual address, with a given size and set of permissions.
uint32_t OSAllocVirtAddr(uint32_t virtualAddress, uint32_t size, uint32_t align)
Allocates virtual address range for later mapping.
BOOL OSFreeVirtAddr(uint32_t virtualAddress, uint32_t size)
Frees a previously allocated virtual address range back to the system.
uint32_t __OSPhysicalToEffectiveCached(uint32_t physicalAddress)
@ OS_MAP_MEMORY_READ_ONLY
@ OS_MAP_MEMORY_ALLOCATED
@ OS_MAP_MEMORY_READ_WRITE