1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Adapt the kernel test to allow ARM aarch64

Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
This commit is contained in:
Leonardo Carreras 2025-02-03 16:42:46 +00:00 committed by Steffen Vogel
parent 5c2fe58a3e
commit 15f51dc9bb

View file

@ -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;