aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGPUCode <[email protected]>2023-11-23 11:26:06 +0200
committert895 <[email protected]>2023-11-25 00:47:43 -0500
commit9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88 (patch)
treed3bf69c51eab1e4c56db1615ecf5193aa76badcc /src/core/memory.h
parentd040b27a35fdf520b17fe6b1cd792058172c8ccc (diff)
downloadyuzu-mainline-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.tar.gz
yuzu-mainline-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.zip
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 e5fbc0025..ed8ebb5eb 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.
*