diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-01-11 04:20:49 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-01-30 14:47:01 +0100 |
commit | 9a345de2bd73c280de16442f78a313c1b6bee84c (patch) | |
tree | e28e8dee9dd183aa08e8b47141a2887cb834757e /src/core/hle/kernel/shared_memory.cpp | |
parent | Merge pull request #412 from purpasmart96/svc_table_cleanup (diff) | |
download | yuzu-9a345de2bd73c280de16442f78a313c1b6bee84c.tar yuzu-9a345de2bd73c280de16442f78a313c1b6bee84c.tar.gz yuzu-9a345de2bd73c280de16442f78a313c1b6bee84c.tar.bz2 yuzu-9a345de2bd73c280de16442f78a313c1b6bee84c.tar.lz yuzu-9a345de2bd73c280de16442f78a313c1b6bee84c.tar.xz yuzu-9a345de2bd73c280de16442f78a313c1b6bee84c.tar.zst yuzu-9a345de2bd73c280de16442f78a313c1b6bee84c.zip |
Diffstat (limited to 'src/core/hle/kernel/shared_memory.cpp')
-rw-r--r-- | src/core/hle/kernel/shared_memory.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index 5368e4728..fa8fc6f92 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp @@ -30,7 +30,7 @@ public: * @param name Name of shared memory object * @return Pointer to newly created shared memory object */ -SharedMemory* CreateSharedMemory(Handle& handle, const std::string& name) { +static SharedMemory* CreateSharedMemory(Handle& handle, const std::string& name) { SharedMemory* shared_memory = new SharedMemory; // TOOD(yuriks): Fix error reporting handle = Kernel::g_handle_table.Create(shared_memory).ValueOr(INVALID_HANDLE); @@ -44,14 +44,6 @@ Handle CreateSharedMemory(const std::string& name) { return handle; } -/** - * Maps a shared memory block to an address in system memory - * @param handle Shared memory block handle - * @param address Address in system memory to map shared memory block to - * @param permissions Memory block map permissions (specified by SVC field) - * @param other_permissions Memory block map other permissions (specified by SVC field) - * @return Result of operation, 0 on success, otherwise error code - */ ResultCode MapSharedMemory(u32 handle, u32 address, MemoryPermission permissions, MemoryPermission other_permissions) { |