Skip to content

Commit 2936998

Browse files
carlocaionenashif
authored andcommitted
aarch64: GCC10: Add -mno-outline-atomics
GCC10 introduced by default calls to out-of-line helpers to implement atomic operations with the '-moutline-atomic' option. This is breaking several tests because the embedded calls are trying to access the zephyr_data region from userspace that is declared as MT_P_RW_U_NA, triggering a memory fault. Since there is currently no support for MT_P_RW_U_RO (and probably never will be), disable the out-of-line helpers disabling the GCC option. Signed-off-by: Carlo Caione <[email protected]>
1 parent ff14bb5 commit 2936998

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/core/aarch64/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ zephyr_library_sources_ifdef(CONFIG_CACHE_MANAGEMENT cache.c)
3333
if ((CONFIG_MP_NUM_CPUS GREATER 1) OR (CONFIG_SMP))
3434
zephyr_library_sources(smp.c)
3535
endif ()
36+
37+
zephyr_cc_option_ifdef(CONFIG_USERSPACE -mno-outline-atomics)

0 commit comments

Comments
 (0)