diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-03 05:07:38 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-03 05:50:58 +0200 |
commit | 99ae9dbf490c599afee21b1dc47de51734381a64 (patch) | |
tree | 1855ffdc9791a4f7cb9953a81604d069531edb04 | |
parent | service: Add friend:u interface. (diff) | |
download | yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar.gz yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar.bz2 yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar.lz yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar.xz yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar.zst yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/shared_memory.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index 88230bdd9..bc99993c8 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp @@ -120,18 +120,6 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi return ERR_WRONG_PERMISSION; } - // TODO(Subv): The same process that created a SharedMemory object - // can not map it in its own address space unless it was created with addr=0, result 0xD900182C. - - if (address != 0) { - // TODO(shinyquagsire23): Check for virtual/mappable memory here too? - if (address >= Memory::HEAP_VADDR && address < Memory::HEAP_VADDR_END) { - LOG_ERROR(Kernel, "cannot map id=%u, address=0x%lx name=%s, invalid address", - GetObjectId(), address, name.c_str()); - return ERR_INVALID_ADDRESS; - } - } - VAddr target_address = address; if (base_address == 0 && target_address == 0) { |