Ai
11 Star 0 Fork 21

src-anolis-os/liburing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
liburing-2.3-sw.patch 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/liburing.git
git@gitee.com:src-anolis-os/liburing.git
src-anolis-os
liburing
liburing
a8

搜索帮助