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:
parent
5c2fe58a3e
commit
15f51dc9bb
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue