summaryrefslogtreecommitdiffstats
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorMichael Scire <SciresM@gmail.com>2018-06-22 08:47:59 +0200
committerMichael Scire <SciresM@gmail.com>2018-06-22 08:47:59 +0200
commit067ac434ba90084359babef1638970e849a5f2ce (patch)
tree9ad25d486e91209de4dc039d652f436868e2d707 /src/core/memory.h
parentAdd additional missing format. (diff)
downloadyuzu-067ac434ba90084359babef1638970e849a5f2ce.tar
yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.gz
yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.bz2
yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.lz
yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.xz
yuzu-067ac434ba90084359babef1638970e849a5f2ce.tar.zst
yuzu-067ac434ba90084359babef1638970e849a5f2ce.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 3f56a2c6a..8d5d017a4 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -188,6 +188,11 @@ enum : VAddr {
MAP_REGION_VADDR = NEW_MAP_REGION_VADDR_END,
MAP_REGION_SIZE = 0x1000000000,
MAP_REGION_VADDR_END = MAP_REGION_VADDR + MAP_REGION_SIZE,
+
+ /// Kernel Virtual Address Range
+ KERNEL_REGION_VADDR = 0xFFFFFF8000000000,
+ KERNEL_REGION_SIZE = 0x7FFFE00000,
+ KERNEL_REGION_END = KERNEL_REGION_VADDR + KERNEL_REGION_SIZE,
};
/// Currently active page table
@@ -197,6 +202,8 @@ PageTable* GetCurrentPageTable();
/// Determines if the given VAddr is valid for the specified process.
bool IsValidVirtualAddress(const Kernel::Process& process, const VAddr vaddr);
bool IsValidVirtualAddress(const VAddr addr);
+/// Determines if the given VAddr is a kernel address
+bool IsKernelVirtualAddress(const VAddr addr);
bool IsValidPhysicalAddress(const PAddr addr);