Skip to content

Commit

Permalink
ci: Fix ci problem
Browse files Browse the repository at this point in the history
Signed-off-by: wangmingrong1 <[email protected]>
  • Loading branch information
W-M-R committed Nov 6, 2024
1 parent 904b6ff commit d243fa7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion arch/xtensa/src/esp32/esp32_spiram.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@

static bool spiram_inited = false;

#ifdef CONFIG_SMP
static struct smp_call_data_s g_call_data =
SMP_CALL_INITIALIZER(pause_cpu_handler, NULL);
#endif

/****************************************************************************
* Private Functions
****************************************************************************/
Expand Down Expand Up @@ -205,7 +210,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);
}

Expand Down
7 changes: 6 additions & 1 deletion arch/xtensa/src/esp32s3/esp32s3_spiram.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ static uint32_t page0_mapped;
static uint32_t page0_page = INVALID_PHY_PAGE;
#endif

#ifdef CONFIG_SMP
static struct smp_call_data_s g_call_data =
SMP_CALL_INITIALIZER(pause_cpu_handler, NULL);
#endif

/****************************************************************************
* ROM Function Prototypes
****************************************************************************/
Expand Down Expand Up @@ -340,7 +345,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);
}

Expand Down

0 comments on commit d243fa7

Please sign in to comment.