Go to the documentation of this file.
18 #ifndef __LIBARCH_ARM_FIRSTTABLE_H
19 #define __LIBARCH_ARM_FIRSTTABLE_H
21 #include <FreeNOS/System.h>
123 const bool tablesOnly);
ARMSecondTable * getSecondTable(Address virt, SplitAllocator *alloc) const
Retrieve second level page table.
MemoryContext::Result map(Address virt, Address phys, Memory::Access access, SplitAllocator *alloc)
Map a virtual address to a physical address.
MemoryContext::Result translate(Address virt, Address *phys, SplitAllocator *alloc) const
Translate virtual address to physical address.
u32 m_tables[4096]
Array of page table entries.
ARM first level page table.
unsigned long Address
A memory address.
MemoryContext::Result mapLarge(Memory::Range range, SplitAllocator *alloc)
Map a contigous range of virtual memory to physical memory.
u32 flags(Memory::Access access) const
Convert Memory::Access to first level page table flags.
Allocator which separates kernel mapped memory at virtual and physical addresses.
void releasePhysical(SplitAllocator *alloc, const Address phys)
Release a single physical page.
ARM second level page table implementation.
unsigned int u32
Unsigned 32-bit number.
MemoryContext::Result access(Address virt, Memory::Access *access, SplitAllocator *alloc) const
Get Access flags for a virtual address.
MemoryContext::Result releaseRange(const Memory::Range range, SplitAllocator *alloc)
Release range of memory.
Access
Memory access flags.
MemoryContext::Result releaseSection(const Memory::Range range, SplitAllocator *alloc, const bool tablesOnly)
Release memory sections.
MemoryContext::Result unmap(Address virt, SplitAllocator *alloc)
Remove virtual address mapping.