mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-01 11:44:23 +00:00
restore protection
This commit is contained in:
parent
0e4bcc5d24
commit
4f8623058e
|
|
@ -149,6 +149,7 @@ void* AllocateMemoryPages(std::size_t size) noexcept {
|
|||
off_t offset = 0;
|
||||
ASSERT(sceKernelAllocateDirectMemory(0, ORBIS_KERNEL_MAIN_DMEM_SIZE, len, align, ORBIS_KERNEL_WB_ONION, &offset) == 0);
|
||||
ASSERT(sceKernelMapDirectMemory(&addr, len, ORBIS_KERNEL_PROT_CPU_RW, 0, offset, len) == 0);
|
||||
ASSERT(sceKernelMprotect(addr, len, VM_PROT_ALL) == 0);
|
||||
LOG_WARNING(HW_Memory, "Using DMem for {} bytes area @ {}", len, addr);
|
||||
ASSERT(addr != nullptr);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue