diff options
author | GPUCode <[email protected]> | 2023-11-23 11:26:06 +0200 |
---|---|---|
committer | t895 <[email protected]> | 2023-11-25 00:47:43 -0500 |
commit | 9ff8d0f3e652fee83d9f4374d9f6e0aa1759dd88 (patch) | |
tree | d3bf69c51eab1e4c56db1615ecf5193aa76badcc /src/core/memory.h | |
parent | d040b27a35fdf520b17fe6b1cd792058172c8ccc (diff) | |
download | yuzu-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.h | 11 |
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. * |