summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/cache.h')
-rw-r--r--include/asm-i386/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-i386/cache.h b/include/asm-i386/cache.h
index 615911e..ca15c9c 100644
--- a/include/asm-i386/cache.h
+++ b/include/asm-i386/cache.h
@@ -10,4 +10,6 @@
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
#endif
OpenPOWER on IntegriCloud