From 066b83b8dfc562e00cb61d39eca0e0f77242828c Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Mon, 5 Jul 2010 20:04:06 -0400 Subject: [PATCH] define ____cacheline_aligned --- include/ust/core.h | 5 ----- include/ust/processor.h | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/ust/core.h b/include/ust/core.h index 8cedf98..0172614 100644 --- a/include/ust/core.h +++ b/include/ust/core.h @@ -119,11 +119,6 @@ static inline long IS_ERR(const void *ptr) #define zmalloc(s) calloc(1, s) -/* ATTRIBUTES */ - -/* FIXME: define this */ -#define ____cacheline_aligned - /* MATH */ #include diff --git a/include/ust/processor.h b/include/ust/processor.h index 867b140..68ac258 100644 --- a/include/ust/processor.h +++ b/include/ust/processor.h @@ -20,10 +20,13 @@ #include #include +#include extern __thread long ust_reg_stack[500]; extern volatile __thread long *ust_reg_stack_ptr; +#define ____cacheline_aligned __attribute__((aligned(CACHE_LINE_SIZE))) + #ifdef __i386 struct registers { -- 2.34.1