Merge pull request #663 from fidergo-stephane-gourichon/fix_crash_on_minimal_cpu

Fix SoC CPU crash on minimal variants on call to flush_cpu_dcache().
This commit is contained in:
enjoy-digital 2020-10-05 19:24:43 +02:00 committed by GitHub
commit 81257da9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ extern "C" {
__attribute__((unused)) static void flush_cpu_icache(void) __attribute__((unused)) static void flush_cpu_icache(void)
{ {
#if defined(CONFIG_CPU_VARIANT_MIN) #if defined(CONFIG_CPU_VARIANT_MINIMAL)
/* No instruction cache */ /* No instruction cache */
#else #else
asm volatile( asm volatile(
@ -27,7 +27,7 @@ __attribute__((unused)) static void flush_cpu_icache(void)
__attribute__((unused)) static void flush_cpu_dcache(void) __attribute__((unused)) static void flush_cpu_dcache(void)
{ {
#if defined(CONFIG_CPU_VARIANT_MIN) || defined(CONFIG_CPU_VARIANT_LITE) #if defined(CONFIG_CPU_VARIANT_MINIMAL) || defined(CONFIG_CPU_VARIANT_LITE)
/* No data cache */ /* No data cache */
#else #else
asm volatile(".word(0x500F)\n"); asm volatile(".word(0x500F)\n");