early-access version 3101

This commit is contained in:
pineappleEA
2022-11-10 00:45:30 +01:00
parent 842c60bef9
commit 7c3242f6da
14 changed files with 67 additions and 35 deletions

View File

@@ -359,6 +359,12 @@ public:
}
});
long page_size = sysconf(_SC_PAGESIZE);
if (page_size != 0x1000) {
LOG_CRITICAL(HW_Memory, "page size {:#x} is incompatible with 4K paging", page_size);
throw std::bad_alloc{};
}
// Backing memory initialization
#if defined(__FreeBSD__) && __FreeBSD__ < 13
// XXX Drop after FreeBSD 12.* reaches EOL on 2024-06-30