summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-04-18 04:58:51 +0200
committerSubv <subv2112@gmail.com>2016-05-13 03:01:26 +0200
commit0fb6d2a24729401e17cd69264cdb630516d9c151 (patch)
treed51689fbf847d396496d9e8ff372bc7dfcc65c0e /src/core/hle/svc.cpp
parentAPT: Implement relocating the shared font to its true address. (diff)
downloadyuzu-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.cpp2
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;