diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-26 04:43:17 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-26 04:43:17 +0200 |
commit | 5bcff3b837f1b2192b190ff8e6a1efdd8f113821 (patch) | |
tree | 75d35066309e7bcdc7a0e90fbb0449da3f4e2d0e /src | |
parent | Update bundled GLFW to 3.1.1 (diff) | |
parent | Core/SVC: Map the shared memory created in CreateMemoryBlock to the specified address. (diff) | |
download | yuzu-5bcff3b837f1b2192b190ff8e6a1efdd8f113821.tar yuzu-5bcff3b837f1b2192b190ff8e6a1efdd8f113821.tar.gz yuzu-5bcff3b837f1b2192b190ff8e6a1efdd8f113821.tar.bz2 yuzu-5bcff3b837f1b2192b190ff8e6a1efdd8f113821.tar.lz yuzu-5bcff3b837f1b2192b190ff8e6a1efdd8f113821.tar.xz yuzu-5bcff3b837f1b2192b190ff8e6a1efdd8f113821.tar.zst yuzu-5bcff3b837f1b2192b190ff8e6a1efdd8f113821.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/svc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 347d241f9..ca3ff3328 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -654,6 +654,8 @@ static ResultCode CreateMemoryBlock(Handle* out_handle, u32 addr, u32 size, u32 using Kernel::MemoryPermission; SharedPtr<SharedMemory> shared_memory = SharedMemory::Create(size, (MemoryPermission)my_permission, (MemoryPermission)other_permission); + // Map the SharedMemory to the specified address + shared_memory->base_address = addr; CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(shared_memory))); LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x%08X", addr); |