diff options
author | tnishinaga.dev@gmail.com <tnishinaga.dev@gmail.com> | 2017-06-05 01:18:08 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-06-09 20:34:54 -0400 |
commit | 8f079cccb369995e46a2ab530d5d60b88c1e70bb (patch) | |
tree | 56a52663270313cb0fdd5b3e1bd2e304d628c892 /arch/arm/lib | |
parent | 00bbe96ebabbc83777cd8d6c6fd2791c5c8cf619 (diff) |
armv7m: Disable D-cache when booting nommu(ARMv7M) Linux kernel
Disable D-Cache is required when booting nommu Linux kernel.
(please see Linux kernel source "arch/arm/kernel/head-nommu.S")
U-Boot is enabled D-cache and I-Cache at startup.
However, it does not disable D-Cache before
booting nommu Linux kernel.
Therefore, I call dcache_disable()
when the CPU is ARMv7M to fix this problem.
Signed-off-by: Toshifumi NISHINAGA <tnishinaga.dev@gmail.com>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/bootm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 704849bd0c..b3e5d24a32 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -360,6 +360,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag) #ifdef CONFIG_CPU_V7M ulong addr = (ulong)kernel_entry | 1; kernel_entry = (void *)addr; + dcache_disable(); #endif s = getenv("machid"); if (s) { |