liburing/liburing-Add-sw64-architecture.patch

43 lines
1.2 KiB
Diff
Raw Normal View History

2022-12-12 03:18:13 -05:00
From 10500de05b6fdb5c39351d8ad704f4eb25e5074c Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
Date: Thu, 10 Nov 2022 14:47:45 +0800
Subject: [PATCH] Add sw64 architecture
2022-12-12 03:18:13 -05:00
Add sw64 architecture in src/include/liburing.h to support sw64 architecture.
Conflict: liburing v2.3 move the support of architectures to src/include/liburing.h,
moving the counterpart to that place.
Signed-off-by: wzx <wuzx1226@qq.com>
2022-12-12 03:18:13 -05:00
Signed-off-by: lihaoxiang <lihaoxiang9@huawei.com>
---
2022-12-12 03:18:13 -05:00
src/include/liburing.h | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
2022-12-12 03:18:13 -05:00
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 12a703f..3de0b78 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -57,7 +57,17 @@
#ifndef __NR_io_uring_register
#define __NR_io_uring_register (__NR_Linux + 427)
#endif
-#else /* !__alpha__ and !__mips__ */
+#elif defined __sw_64__
2022-12-12 03:18:13 -05:00
+#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
+#else /* !__alpha__ and !__mips__ and !__sw_64__ */
#ifndef __NR_io_uring_setup
#define __NR_io_uring_setup 425
#endif
--
2022-12-12 03:18:13 -05:00
1.8.3.1