From f1d285df02d5544912cd3b7b11c063370c108850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 4 Feb 2020 18:43:51 +0100 Subject: [PATCH] m68k: more atomic stubbing Change-Id: Ic8f0078068b0d01973d67424187d11bd2bef019f Reviewed-on: https://review.haiku-os.org/c/haiku/+/2217 Reviewed-by: waddlesplash --- src/system/libroot/os/arch/m68k/atomic.S | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/system/libroot/os/arch/m68k/atomic.S b/src/system/libroot/os/arch/m68k/atomic.S index e23c558374..3a1c9fcbe2 100644 --- a/src/system/libroot/os/arch/m68k/atomic.S +++ b/src/system/libroot/os/arch/m68k/atomic.S @@ -209,3 +209,26 @@ FUNCTION(atomic_get64): movem.l (%a7)+,%d2-%d3/%a2 rts FUNCTION_END(atomic_get64) +.text + +#warning IMPLEMENT GCC 64-bit ATOMICS ON m68k! + +/* These are to fill in 64-bit atomic calls emitted by + * by GCC when 64-bit atomics are unavailable. + */ + +FUNCTION(__atomic_fetch_add_8): + nop + rts +FUNCTION_END(__atomic_fetch_add_8) + +FUNCTION(__atomic_store_8): + nop + rts +FUNCTION_END(__atomic_store_8) + +FUNCTION(__atomic_load_8): + nop + rts +FUNCTION_END(__atomic_load_8) +