diff options
author | Subv <subv2112@gmail.com> | 2014-12-09 05:52:27 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-31 16:51:44 +0100 |
commit | 97a7381d29b69dbe760598e70669c16573304ad4 (patch) | |
tree | f4e336af1e5cf5d72c2665470a96a9db73711ae7 /src/core/hle/svc.cpp | |
parent | Merge pull request #375 from lioncash/uops (diff) | |
download | yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar.gz yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar.bz2 yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar.lz yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar.xz yuzu-97a7381d29b69dbe760598e70669c16573304ad4.tar.zst yuzu-97a7381d29b69dbe760598e70669c16573304ad4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/svc.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 25944fc68..c25409a9f 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -352,6 +352,18 @@ static s64 GetSystemTick() { return (s64)Core::g_app_core->GetTicks(); } +/// Creates a memory block at the specified address with the specified permissions and size +static Result CreateMemoryBlock(Handle* memblock, u32 addr, u32 size, u32 my_permission, + u32 other_permission) { + + // TODO(Subv): Implement this function + + Handle shared_memory = Kernel::CreateSharedMemory(); + *memblock = shared_memory; + LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x%08X", addr); + return 0; +} + const HLE::FunctionDef SVC_Table[] = { {0x00, nullptr, "Unknown"}, {0x01, HLE::Wrap<ControlMemory>, "ControlMemory"}, @@ -383,7 +395,7 @@ const HLE::FunctionDef SVC_Table[] = { {0x1B, nullptr, "SetTimer"}, {0x1C, nullptr, "CancelTimer"}, {0x1D, nullptr, "ClearTimer"}, - {0x1E, nullptr, "CreateMemoryBlock"}, + {0x1E, HLE::Wrap<CreateMemoryBlock>, "CreateMemoryBlock"}, {0x1F, HLE::Wrap<MapMemoryBlock>, "MapMemoryBlock"}, {0x20, nullptr, "UnmapMemoryBlock"}, {0x21, HLE::Wrap<CreateAddressArbiter>, "CreateAddressArbiter"}, |