diff options
Diffstat (limited to 'kern/llsync_i.h')
-rw-r--r-- | kern/llsync_i.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/llsync_i.h b/kern/llsync_i.h index dd5a6179..e043eb9d 100644 --- a/kern/llsync_i.h +++ b/kern/llsync_i.h @@ -19,6 +19,7 @@ #define _KERN_LLSYNC_I_H #include <assert.h> +#include <stdalign.h> #include <kern/cpumap.h> #include <kern/macros.h> @@ -57,7 +58,7 @@ struct llsync_data { * - apply optimistic accesses to reduce contention */ struct { - volatile unsigned int value __aligned(CPU_L1_SIZE); + alignas(CPU_L1_SIZE) volatile unsigned int value; } gcid; }; |