summaryrefslogtreecommitdiffstats
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-09-27 00:27:44 +0200
committerSubv <subv2112@gmail.com>2017-09-27 00:27:44 +0200
commit35da7f57efd5153be37a05ffcbb57412da74265a (patch)
tree94e5c1b2719be32d6a6768ba472025335d6235b2 /src/core/memory.h
parentMerge pull request #2958 from Subv/audio_buffer_datatype (diff)
downloadyuzu-35da7f57efd5153be37a05ffcbb57412da74265a.tar
yuzu-35da7f57efd5153be37a05ffcbb57412da74265a.tar.gz
yuzu-35da7f57efd5153be37a05ffcbb57412da74265a.tar.bz2
yuzu-35da7f57efd5153be37a05ffcbb57412da74265a.tar.lz
yuzu-35da7f57efd5153be37a05ffcbb57412da74265a.tar.xz
yuzu-35da7f57efd5153be37a05ffcbb57412da74265a.tar.zst
yuzu-35da7f57efd5153be37a05ffcbb57412da74265a.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 1865bfea0..347c08c78 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -12,6 +12,10 @@
#include "common/common_types.h"
#include "core/mmio.h"
+namespace Kernel {
+class Process;
+}
+
namespace Memory {
/**
@@ -185,7 +189,10 @@ enum : VAddr {
void SetCurrentPageTable(PageTable* page_table);
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);
+
bool IsValidPhysicalAddress(const PAddr addr);
u8 Read8(VAddr addr);