mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 03:18:55 +02:00
restore protection
This commit is contained in:
parent
c6df1670a5
commit
d5af8b5072
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue