soc: nrf53: fix building anomaly 168 workaround
With GCC 12.3 and binutils 2.40, the build fails with: <...>/zephyr/arch/arm/core/cortex_m/cpu_idle.S: Assembler messages: <...>/zephyr/arch/arm/core/cortex_m/cpu_idle.S:51: Error: junk at end of line, first unrecognized character is `n' <...>/zephyr/arch/arm/core/cortex_m/cpu_idle.S:133: Info: macro invoked from here Because the SOC_ON_EXIT_CPU_IDLE macro puts all the statements on a single line, there must be a semicolon after .rept Signed-off-by: Ben Wolsieffer <benwolsieffer@gmail.com>
This commit is contained in:
parent
18deb582ef
commit
37352d3d29
1 changed files with 2 additions and 2 deletions
|
@ -13,12 +13,12 @@
|
|||
|
||||
#if defined(CONFIG_SOC_NRF53_ANOMALY_168_WORKAROUND_FOR_EXECUTION_FROM_RAM)
|
||||
#define SOC_ON_EXIT_CPU_IDLE \
|
||||
.rept 26 \
|
||||
.rept 26; \
|
||||
nop; \
|
||||
.endr
|
||||
#elif defined(CONFIG_SOC_NRF53_ANOMALY_168_WORKAROUND)
|
||||
#define SOC_ON_EXIT_CPU_IDLE \
|
||||
.rept 8 \
|
||||
.rept 8; \
|
||||
nop; \
|
||||
.endr
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue