diff options
Diffstat (limited to 'kern/macros.h')
-rw-r--r-- | kern/macros.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kern/macros.h b/kern/macros.h index 8f0d10ca..63ded053 100644 --- a/kern/macros.h +++ b/kern/macros.h @@ -25,6 +25,11 @@ #include <stddef.h> #endif /* __ASSEMBLER__ */ +/* + * Attributes for variables that are mostly read and seldom changed. + */ +#define __read_mostly __section(".data.read_mostly") + #define MACRO_BEGIN ({ #define MACRO_END }) |