summaryrefslogtreecommitdiffstats
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGPUCode <geoster3d@gmail.com>2023-11-23 10:26:06 +0100
committert895 <clombardo169@gmail.com>2023-11-25 06:47:43 +0100
commit9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88 (patch)
treed3bf69c51eab1e4c56db1615ecf5193aa76badcc /src/core/memory.h
parentloader: apply nso patch to offset program image (diff)
downloadyuzu-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.tar
yuzu-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.tar.gz
yuzu-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.tar.bz2
yuzu-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.tar.lz
yuzu-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.tar.xz
yuzu-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.tar.zst
yuzu-9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88.zip
Diffstat (limited to '')
-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.
*