Browse Source

CRIS: Define __read_mostly for CRISv32

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Jesper Nilsson 15 years ago
parent
commit
6fdf581e9d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      arch/cris/include/arch-v32/arch/cache.h

+ 2 - 0
arch/cris/include/arch-v32/arch/cache.h

@@ -7,6 +7,8 @@
 #define L1_CACHE_BYTES 32
 #define L1_CACHE_SHIFT 5
 
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
 void flush_dma_list(dma_descr_data *descr);
 void flush_dma_descr(dma_descr_data *descr, int flush_buf);