mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 01:49:24 +08:00
sched/smp: flush dcache before start other cpus
core0 may write the data used by other cpu, this will cause cache inconsistency. so need fulsh dcache before start other cpus. Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
@@ -111,6 +111,10 @@ int nx_smp_start(void)
|
||||
int ret;
|
||||
int cpu;
|
||||
|
||||
/* Flush dcache before start other CPUs. */
|
||||
|
||||
up_flush_dcache_all();
|
||||
|
||||
/* Start all of the other CPUs. CPU0 is already running. */
|
||||
|
||||
for (cpu = 1; cpu < CONFIG_SMP_NCPUS; cpu++)
|
||||
|
||||
Reference in New Issue
Block a user