diff --git a/rpcsx/iodev/dmem.cpp b/rpcsx/iodev/dmem.cpp index 92008f2..cd28ee5 100644 --- a/rpcsx/iodev/dmem.cpp +++ b/rpcsx/iodev/dmem.cpp @@ -45,7 +45,7 @@ orbis::ErrorCode DmemDevice::mmap(void **address, std::uint64_t len, if (prot == 0) { // hack // fixme: implement protect for pid - prot = vm::kMapProtCpuWrite | vm::kMapProtCpuRead | vm::kMapProtGpuAll; + prot = vm::kMapProtCpuReadWrite | vm::kMapProtGpuAll; } if (*address == nullptr) { @@ -92,7 +92,7 @@ static orbis::ErrorCode dmem_ioctl(orbis::File *file, std::uint64_t request, switch (request) { case 0x4008800a: // get size ORBIS_LOG_WARNING("dmem getTotalSize", device->index, argp); - *(std::uint64_t *)argp = device->dmemTotalSize; + *(std::uint64_t *)argp = device->dmemTotalSize / 0x10; return {}; case 0xc0208016: { // get available size