aboutsummaryrefslogtreecommitdiff
path: root/src/common/host_memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-11-10 17:11:27 -0800
committerGitHub <noreply@github.com>2022-11-10 17:11:27 -0800
commit4e4c74cbe7ba7194a1ac3881fb87bed80e6674a7 (patch)
tree082cf6bb2e372c3233872b836fa96bdc0c25f279 /src/common/host_memory.cpp
parent09093559ae275492392039e6ecc1eea2c0f1c3e0 (diff)
parent9509fb30a4bfe2d1aead5251cc3c54f692e1dd14 (diff)
Merge pull request #9198 from liamwhite/arm64
Initial ARM64 support
Diffstat (limited to 'src/common/host_memory.cpp')
-rw-r--r--src/common/host_memory.cpp6
1 files changed, 6 insertions, 0 deletions
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