From f27cb8ac732d942c29fe46db69a6e199b6c0c0bd Mon Sep 17 00:00:00 2001 From: Leonardo Carreras Date: Mon, 3 Feb 2025 16:42:46 +0000 Subject: [PATCH] Adapt the kernel test to allow ARM aarch64 Signed-off-by: Leonardo Carreras --- common/tests/unit/kernel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/tests/unit/kernel.cpp b/common/tests/unit/kernel.cpp index 82f192ccd..9112b1782 100644 --- a/common/tests/unit/kernel.cpp +++ b/common/tests/unit/kernel.cpp @@ -17,20 +17,18 @@ using namespace villas::kernel; // cppcheck-suppress unknownMacro TestSuite(kernel, .description = "Kernel features"); -#if defined(__x86_64__) || defined(__i386__) #define PAGESIZE (1 << 12) #define CACHELINESIZE 64 -#if defined(__x86_64__) +#if defined(__x86_64__) || defined(__aarch64__) #define HUGEPAGESIZE (1 << 21) #elif defined(__i386__) #define HUGEPAGESIZE (1 << 22) -#endif #else #error "Unsupported architecture" #endif -// This test is not portable, but we currently support x86 only +// This test is not portable. Test(kernel, sizes) { int sz;