From 5599a1a3bba618b62168e023360328589582ac30 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 10 Apr 2019 17:41:26 +0000 Subject: [PATCH] freebsd_network: Make riscv64 aware Change-Id: I7199a28738ad8411cb62a858fb7da1bcc0de134a --- src/libs/compat/freebsd_network/compat/sys/param.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/compat/freebsd_network/compat/sys/param.h b/src/libs/compat/freebsd_network/compat/sys/param.h index 90f768d238..5ee628edb8 100644 --- a/src/libs/compat/freebsd_network/compat/sys/param.h +++ b/src/libs/compat/freebsd_network/compat/sys/param.h @@ -56,7 +56,7 @@ #define ALIGNED_POINTER(p, t) ((((uintptr_t)(p)) & (sizeof (t) - 1)) == 0) #elif defined(__arm__) #define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof(t) - 1)) == 0) -#elif defined(__mips__) || defined(__sparc__) +#elif defined(__mips__) || defined(__sparc__) || defined(__riscv64__) #define ALIGNED_POINTER(p, t) ((((unsigned long)(p)) & (sizeof (t) - 1)) == 0) #else #error Need definition of ALIGNED_POINTER for this arch! @@ -64,7 +64,7 @@ /* defined in arch_cpu.h which we can't include here as it's C++ */ #if defined(__x86_64__) || defined(__i386__) || defined(__arm__) \ - || defined(__sparc__) + || defined(__sparc__) || defined(__riscv64__) #define CACHE_LINE_SIZE 64 #else #error Need definition of CACHE_LINE_SIZE for this arch!