From 9509fb30a4bfe2d1aead5251cc3c54f692e1dd14 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 6 Nov 2022 16:45:36 -0500 Subject: Initial ARM64 support --- src/common/host_memory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common/host_memory.cpp') diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 7f96596122..909f6cf3fd 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -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 -- cgit v1.2.3