[haiku-commits] Change in haiku[master]: m68k: more atomic stubbing

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 5 Feb 2020 15:31:14 +0000

From François Revol <revol@xxxxxxx>:

François Revol has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/2217 ;)


Change subject: m68k: more atomic stubbing
......................................................................

m68k: more atomic stubbing

Change-Id: Ic8f0078068b0d01973d67424187d11bd2bef019f
---
M src/system/libroot/os/arch/m68k/atomic.S
1 file changed, 23 insertions(+), 0 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/17/2217/1

diff --git a/src/system/libroot/os/arch/m68k/atomic.S 
b/src/system/libroot/os/arch/m68k/atomic.S
index e23c558..3a1c9fc 100644
--- a/src/system/libroot/os/arch/m68k/atomic.S
+++ b/src/system/libroot/os/arch/m68k/atomic.S
@@ -209,3 +209,26 @@
                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)
+

--
To view, visit https://review.haiku-os.org/c/haiku/+/2217
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Ic8f0078068b0d01973d67424187d11bd2bef019f
Gerrit-Change-Number: 2217
Gerrit-PatchSet: 1
Gerrit-Owner: François Revol <revol@xxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: m68k: more atomic stubbing - Gerrit