summaryrefslogtreecommitdiff
path: root/Add-loongarch64-support.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-04 03:01:09 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-04 03:01:09 +0000
commit21a195c0fbaf7352a1aa708f1360e5a24034b494 (patch)
tree2682f8d2ad236cdd327bf95cf6bf9489d46fb2f8 /Add-loongarch64-support.patch
parent3b8dddec9264f75817af94f6e2dca3d5d753612d (diff)
automatic import of redis6
Diffstat (limited to 'Add-loongarch64-support.patch')
-rw-r--r--Add-loongarch64-support.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/Add-loongarch64-support.patch b/Add-loongarch64-support.patch
new file mode 100644
index 0000000..86df73a
--- /dev/null
+++ b/Add-loongarch64-support.patch
@@ -0,0 +1,26 @@
+From a1f23456adfaec27df27bba511bcf7fae59708f0 Mon Sep 17 00:00:00 2001
+From: WangQiang <wangqiang1@kylinos.cn>
+Date: Tue, 28 Jun 2022 10:10:21 +0800
+Subject: [PATCH] Add LoongArch64 Support
+
+---
+ .../include/jemalloc/internal/jemalloc_internal_types.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
+index 1b750b1..780627d 100644
+--- a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
++++ b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
+@@ -107,6 +107,9 @@ typedef int malloc_cpuid_t;
+ # ifdef __tile__
+ # define LG_QUANTUM 4
+ # endif
++# ifdef __loongarch__
++# define LG_QUANTUM 4
++# endif
+ # ifdef __le32__
+ # define LG_QUANTUM 4
+ # endif
+--
+2.27.0
+