aboutsummaryrefslogtreecommitdiff
path: root/arch/cris
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2010-08-03 18:29:07 +0200
committerJesper Nilsson <jesper.nilsson@axis.com>2010-08-04 13:02:33 +0200
commit6fdf581e9df53ee4f8b46487a046fff7613a0fa0 (patch)
treef899d6160a10a1774786327e21f1e12009cfd828 /arch/cris
parentd717809bcef50658092c8e18d7576475b6484a4c (diff)
CRIS: Define __read_mostly for CRISv32
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/include/arch-v32/arch/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/cris/include/arch-v32/arch/cache.h b/arch/cris/include/arch-v32/arch/cache.h
index dfc73050e6b..1de779f4f24 100644
--- a/arch/cris/include/arch-v32/arch/cache.h
+++ b/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);