mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-03-29 06:59:43 -06:00
* Swap do-while to while If we use a do-while loop, we waste time if `aligned_size = 0`. This is also still accurate to FreeBSD behavior, where it returns success if `start == end` during mprotect. This also effectively prevents the memory assert seen in updated versions of RESIDENT EVIL 2 (CUSA09193) * Move prot validation outside loop The prot variable shouldn't change during a mprotect call, so we can check the flags before protecting instead. Also cleans up the code for prot validation. This should improve performance, and is more accurate to FreeBSD code. * Add logging for protect calls This will help in debugging future problems |
||
|---|---|---|
| .. | ||
| sync | ||
| threads | ||
| aio.cpp | ||
| aio.h | ||
| debug.cpp | ||
| debug.h | ||
| equeue.cpp | ||
| equeue.h | ||
| file_system.cpp | ||
| file_system.h | ||
| kernel.cpp | ||
| kernel.h | ||
| memory.cpp | ||
| memory.h | ||
| orbis_error.h | ||
| posix_error.h | ||
| process.cpp | ||
| process.h | ||
| threads.cpp | ||
| threads.h | ||
| time.cpp | ||
| time.h | ||