sparc: freebsd_network defines
Change-Id: Ib668c69d6b506c6efaeb50d0a3e4784f836ce61a Reviewed-on: https://review.haiku-os.org/c/1105 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
167f096576
commit
d3a6abe920
@@ -55,14 +55,15 @@
|
|||||||
#define ALIGNED_POINTER(p, t) ((((uintptr_t)(p)) & (sizeof (t) - 1)) == 0)
|
#define ALIGNED_POINTER(p, t) ((((uintptr_t)(p)) & (sizeof (t) - 1)) == 0)
|
||||||
#elif defined(__arm__)
|
#elif defined(__arm__)
|
||||||
#define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof(t) - 1)) == 0)
|
#define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof(t) - 1)) == 0)
|
||||||
#elif defined(__mips__)
|
#elif defined(__mips__) || defined(__sparc__)
|
||||||
#define ALIGNED_POINTER(p, t) ((((unsigned long)(p)) & (sizeof (t) - 1)) == 0)
|
#define ALIGNED_POINTER(p, t) ((((unsigned long)(p)) & (sizeof (t) - 1)) == 0)
|
||||||
#else
|
#else
|
||||||
#error Need definition of ALIGNED_POINTER for this arch!
|
#error Need definition of ALIGNED_POINTER for this arch!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* defined in arch_cpu.h which we can't include here as it's C++ */
|
/* defined in arch_cpu.h which we can't include here as it's C++ */
|
||||||
#if defined(__x86_64__) || defined(__i386__) || defined(__arm__)
|
#if defined(__x86_64__) || defined(__i386__) || defined(__arm__) \
|
||||||
|
|| defined(__sparc__)
|
||||||
#define CACHE_LINE_SIZE 64
|
#define CACHE_LINE_SIZE 64
|
||||||
#else
|
#else
|
||||||
#error Need definition of CACHE_LINE_SIZE for this arch!
|
#error Need definition of CACHE_LINE_SIZE for this arch!
|
||||||
|
|||||||
Reference in New Issue
Block a user