Skip to content

Commit c0aa4d2

Browse files
lopsided98gmarull
authored andcommitted
[nrf fromtree] 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 <[email protected]> (cherry picked from commit 37352d3)
1 parent 7967848 commit c0aa4d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soc/arm/nordic_nrf/nrf53/soc_cpu_idle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
#if defined(CONFIG_SOC_NRF53_ANOMALY_168_WORKAROUND_FOR_EXECUTION_FROM_RAM)
1515
#define SOC_ON_EXIT_CPU_IDLE \
16-
.rept 26 \
16+
.rept 26; \
1717
nop; \
1818
.endr
1919
#elif defined(CONFIG_SOC_NRF53_ANOMALY_168_WORKAROUND)
2020
#define SOC_ON_EXIT_CPU_IDLE \
21-
.rept 8 \
21+
.rept 8; \
2222
nop; \
2323
.endr
2424
#endif

0 commit comments

Comments
 (0)