Go to the documentation of this file.
16 #include <proc/cache.h>
19 #define L1_CACHE_DISPARITY (L1_CACHE_NENTRIES * L1_CACHE_BYTES)
21 #define L1_CACHE_DISPARITY L1_CACHE_NENTRIES * L1_CACHE_BYTES
24 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
31 #define DCACHE_PURGE(WAY, ENTRY) \
32 __SYSREG(0xc8400000 + (WAY) * L1_CACHE_WAYDISP + \
33 (ENTRY) * L1_CACHE_BYTES, u32)
35 #define DCACHE_PURGE_WAY0(ENTRY) \
36 __SYSREG(0xc8400000 + 0 * L1_CACHE_WAYDISP + (ENTRY) * L1_CACHE_BYTES, u32)
37 #define DCACHE_PURGE_WAY1(ENTRY) \
38 __SYSREG(0xc8400000 + 1 * L1_CACHE_WAYDISP + (ENTRY) * L1_CACHE_BYTES, u32)
39 #define DCACHE_PURGE_WAY2(ENTRY) \
40 __SYSREG(0xc8400000 + 2 * L1_CACHE_WAYDISP + (ENTRY) * L1_CACHE_BYTES, u32)
41 #define DCACHE_PURGE_WAY3(ENTRY) \
42 __SYSREG(0xc8400000 + 3 * L1_CACHE_WAYDISP + (ENTRY) * L1_CACHE_BYTES, u32)
45 #define ICACHE_DATA(WAY, ENTRY, OFF) \
46 __SYSREG(0xc8000000 + (WAY) * L1_CACHE_WAYDISP + \
47 (ENTRY) * L1_CACHE_BYTES + (OFF) * 4, u32)
48 #define ICACHE_TAG(WAY, ENTRY) \
49 __SYSREG(0xc8100000 + (WAY) * L1_CACHE_WAYDISP + \
50 (ENTRY) * L1_CACHE_BYTES, u32)
53 #define DCACHE_DATA(WAY, ENTRY, OFF) \
54 __SYSREG(0xc8200000 + (WAY) * L1_CACHE_WAYDISP + \
55 (ENTRY) * L1_CACHE_BYTES + (OFF) * 4, u32)
56 #define DCACHE_TAG(WAY, ENTRY) \
57 __SYSREG(0xc8300000 + (WAY) * L1_CACHE_WAYDISP + \
58 (ENTRY) * L1_CACHE_BYTES, u32)