diff options
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) { |