From 0c99d88ed45b3d90c13aa1aedca1fc81a30fef5a Mon Sep 17 00:00:00 2001 From: WillianChan Date: Wed, 15 Jun 2022 15:34:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E6=B7=BB=E5=8A=A0=E3=80=91aarch64?= =?UTF-8?q?=20=E5=90=AF=E5=8A=A8=E6=96=87=E4=BB=B6=E5=A2=9E=E5=8A=A0=20RT?= =?UTF-8?q?=5FNEED=5FFLUSH=5FDCACHE=5FALL=20=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WillianChan --- libcpu/Kconfig | 4 ++++ libcpu/aarch64/cortex-a/entry_point.S | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 2e6307be97..4fc91a822a 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -5,6 +5,10 @@ config RT_USING_CACHE bool default n +config RT_NEED_FLUSH_DCACHE_ALL + bool + default n + config RT_USING_CPU_FFS bool default n diff --git a/libcpu/aarch64/cortex-a/entry_point.S b/libcpu/aarch64/cortex-a/entry_point.S index e9a511ea78..619ac29b0a 100644 --- a/libcpu/aarch64/cortex-a/entry_point.S +++ b/libcpu/aarch64/cortex-a/entry_point.S @@ -13,6 +13,9 @@ .global __start __start: +#ifdef RT_NEED_FLUSH_DCACHE_ALL + bl __asm_flush_dcache_all +#endif bl rt_hw_cpu_id_set /* read cpu id, stop slave cores */ mrs x0, tpidr_el1 -- Gitee From 19d52d42362740863cc0b1eecfd821f85534ae1c Mon Sep 17 00:00:00 2001 From: WillianChan Date: Wed, 15 Jun 2022 17:45:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91RT=5FNE?= =?UTF-8?q?ED=5FFLUSH=5FDCACHE=5FALL=20=E6=94=B9=E5=90=8D=E4=B8=BA=20ARCH?= =?UTF-8?q?=5FARM=5FBOOTWITH=5FFLUSH=5FCACHE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WillianChan --- libcpu/Kconfig | 4 ++-- libcpu/aarch64/cortex-a/entry_point.S | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 4fc91a822a..8e70917dd6 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -5,11 +5,11 @@ config RT_USING_CACHE bool default n -config RT_NEED_FLUSH_DCACHE_ALL +config RT_USING_CPU_FFS bool default n -config RT_USING_CPU_FFS +config ARCH_ARM_BOOTWITH_FLUSH_CACHE bool default n diff --git a/libcpu/aarch64/cortex-a/entry_point.S b/libcpu/aarch64/cortex-a/entry_point.S index 619ac29b0a..ae3fa02ccd 100644 --- a/libcpu/aarch64/cortex-a/entry_point.S +++ b/libcpu/aarch64/cortex-a/entry_point.S @@ -13,7 +13,7 @@ .global __start __start: -#ifdef RT_NEED_FLUSH_DCACHE_ALL +#ifdef ARCH_ARM_BOOTWITH_FLUSH_CACHE bl __asm_flush_dcache_all #endif bl rt_hw_cpu_id_set -- Gitee