aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGPUCode <geoster3d@gmail.com>2023-11-23 11:26:06 +0200
committert895 <clombardo169@gmail.com>2023-11-25 00:47:43 -0500
commit1e5a1d17022d37ea05264fb2388309c77930218e (patch)
treed3bf69c51eab1e4c56db1615ecf5193aa76badcc /src/core/memory.h
parent982183d4c67215996325c89b8baa24a3abe26aa7 (diff)
Address more review comments
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index e5fbc00255..ed8ebb5eba 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -98,6 +98,17 @@ public:
void UnmapRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size);
/**
+ * Protects a region of the emulated process address space with the new permissions.
+ *
+ * @param page_table The page table of the emulated process.
+ * @param base The start address to re-protect. Must be page-aligned.
+ * @param size The amount of bytes to protect. Must be page-aligned.
+ * @param perms The permissions the address range is mapped.
+ */
+ void ProtectRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size,
+ Common::MemoryPermission perms);
+
+ /**
* Checks whether or not the supplied address is a valid virtual
* address for the current process.
*