acassis commented on code in PR #13222:
URL: https://github.com/apache/nuttx/pull/13222#discussion_r1734664765
##########
arch/xtensa/src/esp32/esp32_spiram.c:
##########
@@ -215,13 +217,14 @@ unsigned int IRAM_ATTR cache_sram_mmu_set(int cpu_no, int
pid,
#ifdef CONFIG_SMP
spi_enable_cache(1);
- if (smp_start)
+ if (os_ready)
{
up_cpu_resume(cpu_to_stop);
}
#endif
- leave_critical_section(flags);
+ if (os_ready)
+ leave_critical_section(flags);
Review Comment:
Please include { \n } for all if statements, it is something our CI nxstyle
is not catching yet
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]