diff -Naur cogl-1.22.8.org/build/autotools/as-glibconfig.m4 cogl-1.22.8.sw/build/autotools/as-glibconfig.m4
--- cogl-1.22.8.org/build/autotools/as-glibconfig.m4	2022-02-25 03:19:43.760000000 +0000
+++ cogl-1.22.8.sw/build/autotools/as-glibconfig.m4	2022-02-25 04:38:10.730000000 +0000
@@ -1326,6 +1326,12 @@
           AC_MSG_WARN([[$SPARCV9_WARNING]]))
         glib_memory_barrier_needed=yes
         ;;
+      sw_64*)
+        AC_MSG_RESULT([sw_64])
+        AC_DEFINE_UNQUOTED(G_ATOMIC_SW_64, 1,
+			   [sw_64 atomic implementation])
+        glib_memory_barrier_needed=yes
+        ;;
       alpha*)
         AC_MSG_RESULT([alpha])
         AC_DEFINE_UNQUOTED(G_ATOMIC_ALPHA, 1,
diff -Naur cogl-1.22.8.org/configure cogl-1.22.8.sw/configure
--- cogl-1.22.8.org/configure	2022-02-25 03:19:43.710000000 +0000
+++ cogl-1.22.8.sw/configure	2022-02-25 04:31:21.340000000 +0000
@@ -23659,6 +23659,16 @@
     conftest$ac_exeext conftest.$ac_ext
         glib_memory_barrier_needed=yes
         ;;
+      sw_64*)
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: sw_64" >&5
+$as_echo "sw_64" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define G_ATOMIC_SW_64 1
+_ACEOF
+
+        glib_memory_barrier_needed=yes
+        ;;
       alpha*)
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5
 $as_echo "alpha" >&6; }
