Skip to content

Commit 08e182e

Browse files
Zeno-solehudeng-go
authored andcommitted
forkfd/linux: add support for LoongArch
1 parent 1c78d92 commit 08e182e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
qtbase-opensource-src (5.15.8-1+deepin5) unstable; urgency=medium
2+
3+
* add forkfd/linux: add support for LoongArch.
4+
5+
-- LiChengGang <[email protected]> Thu, 29 Feb 2024 15:18:32 +0800
6+
17
qtbase-opensource-src (5.15.8-1+deepin4) unstable; urgency=medium
28

39
* Fix loongarch64 Architecture Avoid doing kill(-1) in QProcess destructor

debian/patches/loongarch.diff

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,15 @@ Last-Update: 2024-01-30
3939

4040
/*
4141
MIPS family, known revisions: I, II, III, IV, 32, 64
42+
--- qtbase-opensource-src-5.15.8.orig/src/3rdparty/forkfd/forkfd_linux.c
43+
+++ qtbase-opensource-src-5.15.8/src/3rdparty/forkfd/forkfd_linux.c
44+
@@ -83,7 +83,7 @@ static int sys_clone(unsigned long clone
45+
#elif defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__mips__) || \
46+
defined(__nds32__) || defined(__hppa__) || defined(__powerpc__) || defined(__i386__) || \
47+
defined(__x86_64__) || defined(__xtensa__) || defined(__alpha__) || defined(__riscv) || \
48+
- defined(__sw_64__)
49+
+ defined(__sw_64__) || defined(__loongarch__)
50+
/* ctid and newtls are inverted on CONFIG_CLONE_BACKWARDS architectures,
51+
* but since both values are 0, there's no harm. */
52+
return syscall(__NR_clone, cloneflags, child_stack, ptid, ctid, newtls);
53+

0 commit comments

Comments
 (0)