diff options
author | Subv <subv2112@gmail.com> | 2016-04-18 04:58:51 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-05-13 03:01:26 +0200 |
commit | 0fb6d2a24729401e17cd69264cdb630516d9c151 (patch) | |
tree | d51689fbf847d396496d9e8ff372bc7dfcc65c0e /src/core/hle/svc.cpp | |
parent | APT: Implement relocating the shared font to its true address. (diff) | |
download | yuzu-0fb6d2a24729401e17cd69264cdb630516d9c151.tar yuzu-0fb6d2a24729401e17cd69264cdb630516d9c151.tar.gz yuzu-0fb6d2a24729401e17cd69264cdb630516d9c151.tar.bz2 yuzu-0fb6d2a24729401e17cd69264cdb630516d9c151.tar.lz yuzu-0fb6d2a24729401e17cd69264cdb630516d9c151.tar.xz yuzu-0fb6d2a24729401e17cd69264cdb630516d9c151.tar.zst yuzu-0fb6d2a24729401e17cd69264cdb630516d9c151.zip |
Diffstat (limited to 'src/core/hle/svc.cpp')
-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 701dffef3..3a53126c1 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -99,6 +99,7 @@ static ResultCode ControlMemory(u32* out_addr, u32 operation, u32 addr0, u32 add switch (operation & MEMOP_OPERATION_MASK) { case MEMOP_FREE: { + // TODO(Subv): What happens if an application tries to FREE a block of memory that has a SharedMemory pointing to it? if (addr0 >= Memory::HEAP_VADDR && addr0 < Memory::HEAP_VADDR_END) { ResultCode result = process.HeapFree(addr0, size); if (result.IsError()) return result; @@ -798,6 +799,7 @@ static ResultCode CreateMemoryBlock(Handle* out_handle, u32 addr, u32 size, u32 case MemoryPermission::Read: case MemoryPermission::Write: case MemoryPermission::ReadWrite: + case MemoryPermission::DontCare: return true; default: return false; |