FreeNOS
ARM64SecondTable.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Ivan Tan
3 * Copyright (C) 2015 Niek Linnenbank
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __LIB_LIBARCH_ARM64_SECONDTABLE_H
20#define __LIB_LIBARCH_ARM64_SECONDTABLE_H
21
22#include <Types.h>
23#include <Memory.h>
24#include <MemoryContext.h>
25
41{
42 public:
43
54 Address phys,
56
65
75
85
86 private:
87
96
97 private:
98
101};
102
109#endif /* __LIB_LIBARCH_ARM64_SECONDTABLE_H */
u32 flags
Definition IntelACPI.h:3
ARM64 second level page table implementation.
u64 m_pages[512]
Array of second level page table entries.
MemoryContext::Result translate(Address virt, Address *phys) const
Translate virtual address to physical address.
MemoryContext::Result unmap(Address virt)
Remove virtual address mapping.
MemoryContext::Result access(Address virt, Memory::Access *access) const
Get Access flags for a virtual address.
MemoryContext::Result map(Address virt, Address phys, Memory::Access)
Map a virtual address to a physical address.
Result
Result codes.
unsigned int u32
Unsigned 32-bit number.
Definition Types.h:53
unsigned long Address
A memory address.
Definition Types.h:131
unsigned long long u64
Unsigned 64-bit number.
Definition Types.h:50
Access
Memory access flags.
Definition Memory.h:39