From d90d5a0ee6b9c08baacd56cb88159d20bbfdb2f0 Mon Sep 17 00:00:00 2001 From: Subv Date: Thu, 31 Dec 2015 09:46:32 -0500 Subject: HLE/SVC: Implement UnmapMemoryBlock. This implementation will need to be (almost completely) changed when we implement multiprocess support. --- src/core/hle/kernel/shared_memory.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/hle/kernel/shared_memory.h') diff --git a/src/core/hle/kernel/shared_memory.h b/src/core/hle/kernel/shared_memory.h index 35b550d12..b51049ad0 100644 --- a/src/core/hle/kernel/shared_memory.h +++ b/src/core/hle/kernel/shared_memory.h @@ -52,6 +52,13 @@ public: */ ResultCode Map(VAddr address, MemoryPermission permissions, MemoryPermission other_permissions); + /** + * Unmaps a shared memory block from the specified address in system memory + * @param address Address in system memory where the shared memory block is mapped + * @return Result code of the unmap operation + */ + ResultCode Unmap(VAddr address); + /** * Gets a pointer to the shared memory block * @param offset Offset from the start of the shared memory block to get pointer -- cgit v1.2.3