diff options
Diffstat (limited to 'net/kamailio')
-rw-r--r-- | net/kamailio/Makefile | 1 | ||||
-rw-r--r-- | net/kamailio/files/patch-src_core_fastlock.h | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/net/kamailio/Makefile b/net/kamailio/Makefile index 66fce794c32e..e5e368116023 100644 --- a/net/kamailio/Makefile +++ b/net/kamailio/Makefile @@ -1,5 +1,6 @@ PORTNAME= kamailio DISTVERSION= 6.0.2 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= http://www.kamailio.org/pub/kamailio/${PORTVERSION}/src/ DISTNAME= ${PORTNAME}-${DISTVERSION}_src diff --git a/net/kamailio/files/patch-src_core_fastlock.h b/net/kamailio/files/patch-src_core_fastlock.h new file mode 100644 index 000000000000..c4bcb14d7728 --- /dev/null +++ b/net/kamailio/files/patch-src_core_fastlock.h @@ -0,0 +1,29 @@ +--- src/core/fastlock.h.orig 2025-09-01 19:50:34 UTC ++++ src/core/fastlock.h +@@ -99,7 +99,7 @@ typedef volatile int fl_lock_t; + #endif /* NOSMP */ + #define membar_getlock() + +-#elif defined(__CPU_ppc) || defined(__CPU_ppc64) ++#elif defined(__CPU_ppc) || defined(__CPU_ppc64) || defined(__CPU_powerpc) || defined(__CPU_ppc64) || defined(__CPU_powerpc64le) + #ifndef NOSMP + #define membar_getlock() asm volatile("lwsync \n\t" : : : "memory"); + #else +@@ -228,7 +228,7 @@ inline static int tsl(fl_lock_t *lock) + : "cc", "memory"); + + +-#elif defined(__CPU_ppc) || defined(__CPU_ppc64) ++#elif defined(__CPU_ppc) || defined(__CPU_ppc64) || defined(__CPU_powerpc) || defined(__CPU_ppc64) || defined(__CPU_powerpc64le) + asm volatile("1: \n\t" + #ifdef SPIN_OPTIMIZE + " lwzx %0, 0, %2 \n\t" +@@ -394,7 +394,7 @@ inline static void release_lock(fl_lock_t *lock) + asm volatile(" stlr %w1, %0 \n\t" : "=Q"(*lock) : "r"(0) : "memory"); + + +-#elif defined(__CPU_ppc) || defined(__CPU_ppc64) ++#elif defined(__CPU_ppc) || defined(__CPU_ppc64) || defined(__CPU_powerpc) || defined(__CPU_ppc64) || defined(__CPU_powerpc64le) + asm volatile( + /* "sync\n\t" lwsync is faster and will work + * here too |