Module: kamailio
Branch: master
Commit: 4b3ac98cd29b3fbe9856e9b83e92e49031fe081a
URL: 
https://github.com/kamailio/kamailio/commit/4b3ac98cd29b3fbe9856e9b83e92e49031fe081a

Author: Xenofon Karamanos <[email protected]>
Committer: Xenofon Karamanos <[email protected]>
Date: 2025-12-15T08:36:21Z

cmake: Update futex and fast_lock arch support

- Remove futex support for arm
- Add fast_lock support for arm

---

Modified: cmake/lock_methods.cmake

---

Diff:  
https://github.com/kamailio/kamailio/commit/4b3ac98cd29b3fbe9856e9b83e92e49031fe081a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/4b3ac98cd29b3fbe9856e9b83e92e49031fe081a.patch

---

diff --git a/cmake/lock_methods.cmake b/cmake/lock_methods.cmake
index 97f7dd4a345..f7ecc6473f0 100644
--- a/cmake/lock_methods.cmake
+++ b/cmake/lock_methods.cmake
@@ -37,17 +37,13 @@ if(FUTEX_HEADER_DIR)
   # This conditional checks if the TARGET_ARCH does not match any of the 
specified supported architectures.
   # The supported architectures include see atomic_native.h and 
atomic_(arhitecture).h files:
   # - Alpha: alpha: atomic_alpha.h
-  # - ARM variants: arm, arm6, and arm7: atomic_arm.h
+  # - ARM variants: arm6, and arm7: atomic_arm.h
   # - MIPS variants: mips, mips2, and mips64: atomic_mips.h
   # - PowerPC variants: ppc and ppc64: atomic_ppc.h
   # - SPARC variants: sparc and sparc64: atomic_sparc.h and atomic_sparc64.h
   # - x86 variants: i386 and x86_64: atomic_x86.h
-  # If the architecture is not in this list, the code block following this if 
statement will execute,
-  # likely to handle unsupported architectures or apply alternative lock 
method configurations.
-  if(NOT
-     "${TARGET_ARCH}"
-     MATCHES
-     
"^(i386|x86_64)$|^(mips|mips2|mips64)$|^(ppc|ppc64)$|^(sparc|sparc64)$|^(arm|arm6|arm7)$|^alpha$"
+  if(NOT "${TARGET_ARCH}" MATCHES
+     
"^(i386|x86_64)$|^(mips|mips2|mips64)$|^(ppc|ppc64)$|^(sparc|sparc64)$|^(arm6|arm7)$|^alpha$"
   )
     set(_HAVE_FUTEX FALSE)
   endif()
@@ -81,12 +77,14 @@ endif()
 
 # check fast-lock arch support
 if("${TARGET_ARCH}" MATCHES
-   
"i386$|x86_64$|aarch64$|arm6$|arm7$|ppc$|ppc64$|sparc64$|sparc$|alpha$|mips2$|mips64$"
+   
"i386$|x86_64$|aarch64$|arm$|arm6$|arm7$|ppc$|ppc64$|sparc64$|sparc$|alpha$|mips2$|mips64$"
 )
   set(_HAVE_FAST_LOCK TRUE)
 elseif("${TARGET_ARCH}" MATCHES "mips$")
   # explicitly unsupported (old code added extra defs)
   set(_HAVE_FAST_LOCK FALSE)
+else()
+  set(_HAVE_FAST_LOCK FALSE)
 endif()
 
 message(

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to