26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
From d6ee5ecb7bb9225787490268e887fc42f75092de Mon Sep 17 00:00:00 2001
|
|
From: mahailiang <mahailiang@uniontech.com>
|
|
Date: Thu, 31 Oct 2024 22:06:16 +0800
|
|
Subject: [PATCH] add-sw_64-support-for-syscall_fork
|
|
|
|
---
|
|
src/3rdparty/forkfd/forkfd_linux.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/3rdparty/forkfd/forkfd_linux.c b/src/3rdparty/forkfd/forkfd_linux.c
|
|
index b1f5408d..642c007b 100644
|
|
--- a/src/3rdparty/forkfd/forkfd_linux.c
|
|
+++ b/src/3rdparty/forkfd/forkfd_linux.c
|
|
@@ -83,7 +83,7 @@ static int sys_clone(unsigned long cloneflags, int *ptid)
|
|
#elif defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__mips__) || \
|
|
defined(__nds32__) || defined(__hppa__) || defined(__powerpc__) || defined(__i386__) || \
|
|
defined(__x86_64__) || defined(__xtensa__) || defined(__alpha__) || defined(__riscv) || \
|
|
- defined(__loongarch__)
|
|
+ defined(__loongarch__) || defined(__sw_64__)
|
|
/* ctid and newtls are inverted on CONFIG_CLONE_BACKWARDS architectures,
|
|
* but since both values are 0, there's no harm. */
|
|
return syscall(__NR_clone, cloneflags, child_stack, ptid, ctid, newtls);
|
|
--
|
|
2.20.1
|
|
|