Merge branch 'hygon-support' of https://github.com/hygonsoc/fio
[fio.git] / arch / arch-x86-common.h
index f32835cce33bc4a74adeb5b9ad59f49515bceeeb..87925bdc2de90f0843dd1d0468d833898c49910d 100644 (file)
@@ -3,6 +3,16 @@
 
 #include <string.h>
 
+#ifndef __NR_sys_io_uring_setup
+#define __NR_sys_io_uring_setup                425
+#endif
+#ifndef __NR_sys_io_uring_enter
+#define __NR_sys_io_uring_enter                426
+#endif
+#ifndef __NR_sys_io_uring_register
+#define __NR_sys_io_uring_register     427
+#endif
+
 static inline void cpuid(unsigned int op,
                         unsigned int *eax, unsigned int *ebx,
                         unsigned int *ecx, unsigned int *edx)
@@ -13,6 +23,7 @@ static inline void cpuid(unsigned int op,
 }
 
 #define ARCH_HAVE_INIT
+#define ARCH_HAVE_IOURING
 
 extern bool tsc_reliable;
 extern int arch_random;