代码拉取完成,页面将自动刷新
add sw arch \#e65fe006afaf9e089e2e136f3af32f03cb1e2902.
From b8c75394f65ca5980608610c5af8c21d92ab2b11 Mon Sep 17 00:00:00 2001
From: wxiat <nijie@wxiat.com>
Date: Thu, 21 Mar 2024 19:38:29 +0800
Subject: [PATCH] Add sw arch.
Signed-off-by: wxiat <nijie@wxiat.com>
---
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。