diff options
Diffstat (limited to 'kern/turnstile.c')
-rw-r--r-- | kern/turnstile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/turnstile.c b/kern/turnstile.c index 97416ae9..24da2cd2 100644 --- a/kern/turnstile.c +++ b/kern/turnstile.c @@ -44,6 +44,7 @@ */ #include <assert.h> +#include <stdalign.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> @@ -64,9 +65,9 @@ * (b) bucket */ struct turnstile_bucket { - struct spinlock lock; + alignas(CPU_L1_SIZE) struct spinlock lock; struct list list; /* (b) */ -} __aligned(CPU_L1_SIZE); +}; /* * Adding/removing waiters to/from a turnstile are performed while |