diff options
| author | 2018-04-02 23:07:38 -0400 | |
|---|---|---|
| committer | 2018-04-02 23:50:58 -0400 | |
| commit | 99ae9dbf490c599afee21b1dc47de51734381a64 (patch) | |
| tree | 1855ffdc9791a4f7cb9953a81604d069531edb04 /src/core | |
| parent | service: Add friend:u interface. (diff) | |
| download | yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar.gz yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.tar.xz yuzu-99ae9dbf490c599afee21b1dc47de51734381a64.zip | |
shared_memory: Remove incorrect 3ds-specific check.
Diffstat (limited to 'src/core')
| -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 | |||
| 120 | return ERR_WRONG_PERMISSION; | 120 | return ERR_WRONG_PERMISSION; |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | // TODO(Subv): The same process that created a SharedMemory object | ||
| 124 | // can not map it in its own address space unless it was created with addr=0, result 0xD900182C. | ||
| 125 | |||
| 126 | if (address != 0) { | ||
| 127 | // TODO(shinyquagsire23): Check for virtual/mappable memory here too? | ||
| 128 | if (address >= Memory::HEAP_VADDR && address < Memory::HEAP_VADDR_END) { | ||
| 129 | LOG_ERROR(Kernel, "cannot map id=%u, address=0x%lx name=%s, invalid address", | ||
| 130 | GetObjectId(), address, name.c_str()); | ||
| 131 | return ERR_INVALID_ADDRESS; | ||
| 132 | } | ||
| 133 | } | ||
| 134 | |||
| 135 | VAddr target_address = address; | 123 | VAddr target_address = address; |
| 136 | 124 | ||
| 137 | if (base_address == 0 && target_address == 0) { | 125 | if (base_address == 0 && target_address == 0) { |