mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-19 09:57:02 +02:00
use 16k pages again
This commit is contained in:
parent
3e998b9492
commit
908da85a09
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ static void SwapHandler(int sig, void* raw_context) {
|
|||
if (auto const it = std::ranges::find_if(swap_regions, [addr = mctx.mc_addr](auto const& e) {
|
||||
return uintptr_t(addr) >= uintptr_t(e.first) && uintptr_t(addr) < uintptr_t(e.first) + e.second;
|
||||
}); it != swap_regions.end()) {
|
||||
size_t const page_size = Orbis::ORBIS_PAGE_SIZE; //16K
|
||||
size_t const page_size = Orbis::ORBIS_PAGE_SIZE * 128; //128K
|
||||
size_t const page_mask = ~(page_size - 1);
|
||||
// should replace the existing mapping... ugh
|
||||
void* aligned_addr = reinterpret_cast<void*>(uintptr_t(mctx.mc_addr) & page_mask);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue