diff --git a/liburing-2.3-sw.patch b/liburing-2.3-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..80481de8545fd1bc332990138c4a783a6c208ea3 --- /dev/null +++ b/liburing-2.3-sw.patch @@ -0,0 +1,43 @@ +From b8c75394f65ca5980608610c5af8c21d92ab2b11 Mon Sep 17 00:00:00 2001 +From: wxiat +Date: Thu, 21 Mar 2024 19:38:29 +0800 +Subject: [PATCH] Add sw arch. + +Signed-off-by: wxiat +--- + src/include/liburing.h | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/src/include/liburing.h b/src/include/liburing.h +index 531bf2e..ae49d06 100644 +--- a/src/include/liburing.h ++++ b/src/include/liburing.h +@@ -47,6 +47,16 @@ + #ifndef __NR_io_uring_register + #define __NR_io_uring_register 537 + #endif ++#elif defined __sw_64__ ++#ifndef __NR_io_uring_setup ++#define __NR_io_uring_setup 272 ++#endif ++#ifndef __NR_io_uring_enter ++#define __NR_io_uring_enter 273 ++#endif ++#ifndef __NR_io_uring_register ++#define __NR_io_uring_register 274 ++#endif + #elif defined __mips__ + #ifndef __NR_io_uring_setup + #define __NR_io_uring_setup (__NR_Linux + 425) +@@ -57,7 +67,7 @@ + #ifndef __NR_io_uring_register + #define __NR_io_uring_register (__NR_Linux + 427) + #endif +-#else /* !__alpha__ and !__mips__ */ ++#else /* !__alpha__ and !__sw_64__ and !__mips__ */ + #ifndef __NR_io_uring_setup + #define __NR_io_uring_setup 425 + #endif +-- +2.31.1 + diff --git a/liburing.spec b/liburing.spec index 29460d09382d755a331997f0a863568ebbc78e4e..d5bd2789031b67b1305b831fb679d84fae7ca308 100644 --- a/liburing.spec +++ b/liburing.spec @@ -19,6 +19,7 @@ Patch1007: 1007-test-io_uring_passthrough-cleanup-invalid-submission.patch Patch1008: 1008-test-io_uring_passthrough-skip-test-if-bit-sqe-cqe-s.patch Patch1009: 1009-test-read-before-exit-handle-IOPOLL-failure-on-older.patch Patch1010: 1010-test-sqpoll-idle-us-add-SQ_AFF-flag.patch +Patch2000: liburing-2.3-sw.patch # End: Anolis customized patches %description @@ -60,6 +61,9 @@ for the Linux-native io_uring. %{_mandir}/man7/* %changelog +* Thu Mar 21 2024 wxiat - 2.3-2.0.1 +- cherry-pick `add sw arch #e65fe006afaf9e089e2e136f3af32f03cb1e2902`. + * Tue Oct 10 2023 Ferry Meng - 2.3-2.0.1 - update read-before-exit and sqpoll-idle-us tests