mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
ci: Fix ci problem
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
904b6ff85b
commit
f32f25c31e
@@ -74,6 +74,12 @@
|
||||
|
||||
static bool spiram_inited = false;
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
static int pause_cpu_handler(FAR void *cookie);
|
||||
static struct smp_call_data_s g_call_data =
|
||||
SMP_CALL_INITIALIZER(pause_cpu_handler, NULL);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
@@ -205,7 +211,7 @@ unsigned int IRAM_ATTR cache_sram_mmu_set(int cpu_no, int pid,
|
||||
cpu_to_stop = this_cpu() == 1 ? 0 : 1;
|
||||
g_cpu_wait = true;
|
||||
g_cpu_pause = false;
|
||||
nxsched_smp_call_single(cpu_to_stop, pause_cpu_handler, NULL, false);
|
||||
nxsched_smp_call_single_async(cpu_to_stop, &g_call_data);
|
||||
while (!g_cpu_pause);
|
||||
}
|
||||
|
||||
|
||||
@@ -117,6 +117,12 @@ static uint32_t page0_mapped;
|
||||
static uint32_t page0_page = INVALID_PHY_PAGE;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
static int pause_cpu_handler(FAR void *cookie);
|
||||
static struct smp_call_data_s g_call_data =
|
||||
SMP_CALL_INITIALIZER(pause_cpu_handler, NULL);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* ROM Function Prototypes
|
||||
****************************************************************************/
|
||||
@@ -340,7 +346,7 @@ int IRAM_ATTR cache_dbus_mmu_map(int vaddr, int paddr, int num)
|
||||
{
|
||||
g_cpu_wait = true;
|
||||
g_cpu_pause = false;
|
||||
nxsched_smp_call_single(other_cpu, pause_cpu_handler, NULL, false);
|
||||
nxsched_smp_call_single_async(other_cpu, &g_call_data);
|
||||
while (!g_cpu_pause);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user