diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-25 20:44:44 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-25 20:50:25 +0200 |
commit | 9ded7917da06dea7f7284648281fd5d827f8a9a4 (patch) | |
tree | 75ab1d8d1b4d89ceb6d17563367c40446c865521 /vm | |
parent | 5ee8402d3746e1e7831f6094aa07d29c5306b416 (diff) |
Use the C11 alignas and noreturn macros
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_page.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c index caa8c98c..00674499 100644 --- a/vm/vm_page.c +++ b/vm/vm_page.c @@ -30,6 +30,7 @@ */ #include <assert.h> +#include <stdalign.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> @@ -75,12 +76,12 @@ * Per-processor cache of pages. */ struct vm_page_cpu_pool { - struct mutex lock; + alignas(CPU_L1_SIZE) struct mutex lock; int size; int transfer_size; int nr_pages; struct list pages; -} __aligned(CPU_L1_SIZE); +}; /* * Special order value for pages that aren't in a free list. Such pages are |