40 lines
1.8 KiB
Diff
40 lines
1.8 KiB
Diff
From d52504bbf8673d1f33f9926933eece1eaf0b31c5 Mon Sep 17 00:00:00 2001
|
|
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
|
Date: Fri, 12 Jul 2024 07:23:25 +0000
|
|
Subject: [PATCH] add loong64 support for trafficserver
|
|
|
|
---
|
|
include/tscore/ink_queue.h | 2 +-
|
|
iocore/eventsystem/UnixEventProcessor.cc | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/include/tscore/ink_queue.h b/include/tscore/ink_queue.h
|
|
index ef79752..a9fb1b5 100644
|
|
--- a/include/tscore/ink_queue.h
|
|
+++ b/include/tscore/ink_queue.h
|
|
@@ -139,7 +139,7 @@ union head_p {
|
|
#define SET_FREELIST_POINTER_VERSION(_x, _p, _v) \
|
|
(_x).s.pointer = _p; \
|
|
(_x).s.version = _v
|
|
-#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__mips64) || defined(__riscv)
|
|
+#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__mips64) || defined(__riscv) || defined(__loongarch64)
|
|
/* Layout of FREELIST_POINTER
|
|
*
|
|
* 0 ~ 47 bits : 48 bits, Virtual Address
|
|
diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc
|
|
index 0c123c1..3fb27cb 100644
|
|
--- a/iocore/eventsystem/UnixEventProcessor.cc
|
|
+++ b/iocore/eventsystem/UnixEventProcessor.cc
|
|
@@ -141,7 +141,7 @@ void
|
|
ThreadAffinityInitializer::setup_stack_guard(void *stack, int stackguard_pages)
|
|
{
|
|
#if !(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) || defined(__aarch64__) || \
|
|
- defined(__mips__) || defined(__powerpc64__) || defined(__riscv))
|
|
+ defined(__mips__) || defined(__powerpc64__) || defined(__riscv) || defined(__loongarch64))
|
|
#error Unknown stack growth direction. Determine the stack growth direction of your platform.
|
|
// If your stack grows upwards, you need to change this function and the calculation of stack_begin in do_alloc_stack.
|
|
#endif
|
|
--
|
|
2.43.0
|
|
|