代码拉取完成,页面将自动刷新
diff -crN '--exclude=.git' '--exclude=.gitee' '--exclude=.vscode' DCF-6.0.0/CMakeLists.txt DCF-6.0.0-edit/CMakeLists.txt
*** DCF-6.0.0/CMakeLists.txt 2024-11-02 17:04:54.937886579 +0800
--- DCF-6.0.0-edit/CMakeLists.txt 2024-11-02 17:04:05.634252331 +0800
***************
*** 84,89 ****
--- 84,91 ----
add_compile_options(-mtune=cortex-a72 -fsigned-char -g -ggdb3 -march=armv8-a+crc -funwind-tables)
elseif (OS_ARCH STREQUAL "x86_64")
add_compile_options(-msse4.2 )
+ else ()
+ add_compile_options()
endif ()
Add_Definitions(-DWSEC_COMPILE_CAC_OPENSSL -DWSEC_AES_GCM_SUPPORT -DWSEC_USE_OPENSSL_110)
else ()
diff -crN '--exclude=.git' '--exclude=.gitee' '--exclude=.vscode' DCF-6.0.0/src/common/cm_concurrency/cm_spinlock.h DCF-6.0.0-edit/src/common/cm_concurrency/cm_spinlock.h
*** DCF-6.0.0/src/common/cm_concurrency/cm_spinlock.h 2024-11-02 17:04:54.937886579 +0800
--- DCF-6.0.0-edit/src/common/cm_concurrency/cm_spinlock.h 2024-11-02 17:04:32.631956892 +0800
***************
*** 68,73 ****
--- 68,76 ----
{ \
__asm__ volatile("nop"); \
}
+ #elif defined(__sw_64__)
+ #define fas_cpu_pause() \
+ {}
#else
#define fas_cpu_pause() \
{ \
diff -crN '--exclude=.git' '--exclude=.gitee' '--exclude=.vscode' DCF-6.0.0/src/common/cm_concurrency/cm_thread.c DCF-6.0.0-edit/src/common/cm_concurrency/cm_thread.c
*** DCF-6.0.0/src/common/cm_concurrency/cm_thread.c 2024-11-02 17:04:54.937886579 +0800
--- DCF-6.0.0-edit/src/common/cm_concurrency/cm_thread.c 2024-11-02 17:04:32.631956892 +0800
***************
*** 296,301 ****
--- 296,303 ----
#define __SYS_GET_SPID 186
#elif (defined __aarch64__)
#define __SYS_GET_SPID 178
+ #elif (defined __sw_64__)
+ #define __SYS_GET_SPID 378
#elif (defined __loongarch__)
#include<sys/syscall.h>
#define __SYS_GET_SPID SYS_gettid
diff -crN '--exclude=.git' '--exclude=.gitee' '--exclude=.vscode' DCF-6.0.0/src/common/cm_utils/cm_checksum.h DCF-6.0.0-edit/src/common/cm_utils/cm_checksum.h
*** DCF-6.0.0/src/common/cm_utils/cm_checksum.h 2024-11-02 17:04:54.937886579 +0800
--- DCF-6.0.0-edit/src/common/cm_utils/cm_checksum.h 2024-11-02 17:04:05.637252187 +0800
***************
*** 26,32 ****
#include "cm_defs.h"
! #if defined(__arm__) || defined(__aarch64__)
#ifdef __has_include
#if __has_include(<arm_acle.h>)
#include <arm_acle.h>
--- 26,32 ----
#include "cm_defs.h"
! #if defined(__arm__) || defined(__aarch64__) || defined(__sw_64__)
#ifdef __has_include
#if __has_include(<arm_acle.h>)
#include <arm_acle.h>
diff -crN '--exclude=.git' '--exclude=.gitee' '--exclude=.vscode' DCF-6.0.0/src/common/cm_utils/cm_memory.h DCF-6.0.0-edit/src/common/cm_utils/cm_memory.h
*** DCF-6.0.0/src/common/cm_utils/cm_memory.h 2024-11-02 17:04:54.937886579 +0800
--- DCF-6.0.0-edit/src/common/cm_utils/cm_memory.h 2024-11-02 17:04:32.631956892 +0800
***************
*** 56,61 ****
--- 56,64 ----
__asm__ volatile("dmb ish" :: \
: "memory"); \
}
+ #elif defined(__sw_64__)
+ #define CM_MFENCE \
+ {}
#elif defined(__i386__) || defined(__x86_64__)
#define CM_MFENCE \
{ \
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。