mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-21 22:37:05 +02:00
use 16k pages again
This commit is contained in:
parent
b44aa33180
commit
aef54c452e
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) {
|
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;
|
return uintptr_t(addr) >= uintptr_t(e.first) && uintptr_t(addr) < uintptr_t(e.first) + e.second;
|
||||||
}); it != swap_regions.end()) {
|
}); 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);
|
size_t const page_mask = ~(page_size - 1);
|
||||||
// should replace the existing mapping... ugh
|
// should replace the existing mapping... ugh
|
||||||
void* aligned_addr = reinterpret_cast<void*>(uintptr_t(mctx.mc_addr) & page_mask);
|
void* aligned_addr = reinterpret_cast<void*>(uintptr_t(mctx.mc_addr) & page_mask);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue