diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-15 21:11:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-23 09:29:52 +0200 |
commit | 28278839116d9e29132a61c2c0c612900c244708 (patch) | |
tree | 9fc879b4a385d899515e908b007b96a214032b90 /arch/arm/include | |
parent | 465950ee64f6fbeb0daf138c2d43ad71be159375 (diff) | |
download | barebox-28278839116d9e29132a61c2c0c612900c244708.tar.gz barebox-28278839116d9e29132a61c2c0c612900c244708.tar.xz |
ARM: invalidate data caches during early init
Some SoCs come up with invalid entries in the data cache. This can
lead to memory corruption when we enable them later, so invalidate
the caches early.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cache.h b/arch/arm/include/asm/cache.h index e5621ebbca..f5f8bf3879 100644 --- a/arch/arm/include/asm/cache.h +++ b/arch/arm/include/asm/cache.h @@ -10,10 +10,15 @@ int arm_set_cache_functions(void); #ifdef CONFIG_MMU void arm_early_mmu_cache_flush(void); +void arm_early_mmu_cache_invalidate(void); #else static inline void arm_early_mmu_cache_flush(void) { } + +static inline void arm_early_mmu_cache_invalidate(void) +{ +} #endif #endif |