Changeset afe5e09 in mainline for kernel/arch/arm32/include/arch/barrier.h
- Timestamp:
- 2015-10-06T20:20:50Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 15fbe6a
- Parents:
- d5610b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/arch/barrier.h
rd5610b9 rafe5e09 40 40 #include <arch/cache.h> 41 41 #include <arch/cp15.h> 42 #include <align.h> 42 43 #else 43 44 #include <libarch/cp15.h> … … 115 116 #define smc_coherence(a) \ 116 117 do { \ 117 dcache_clean_mva_pou( (uintptr_t) a);\118 dcache_clean_mva_pou(ALIGN_DOWN((uintptr_t) a, CP15_C7_MVA_ALIGN)); \ 118 119 write_barrier(); /* Wait for completion */\ 119 120 icache_invalidate();\ … … 124 125 #define smc_coherence_block(a, l) \ 125 126 do { \ 126 for (uintptr_t addr = (uintptr_t)a; addr < (uintptr_t)a + l; addr += 4)\ 127 for (uintptr_t addr = (uintptr_t) a; addr < (uintptr_t) a + l; \ 128 addr += CP15_C7_MVA_ALIGN) \ 127 129 smc_coherence(addr); \ 128 130 } while (0)
Note:
See TracChangeset
for help on using the changeset viewer.