From 934f42ef6c8878f2442387abe9155b177b4319df Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sun, 13 Jan 2019 10:57:44 -0700 Subject: [PATCH] io_uring: add 32-bit x86 support Signed-off-by: Jens Axboe --- arch/arch-x86.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arch-x86.h b/arch/arch-x86.h index c6bcb54c..c1c866ea 100644 --- a/arch/arch-x86.h +++ b/arch/arch-x86.h @@ -1,6 +1,16 @@ #ifndef ARCH_X86_H #define ARCH_X86_H +#ifndef __NR_sys_io_uring_setup +#define __NR_sys_io_uring_setup 387 +#endif +#ifndef __NR_sys_io_uring_enter +#define __NR_sys_io_uring_enter 388 +#endif +#ifndef __NR_sys_io_uring_register +#define __NR_sys_io_uring_register 389 +#endif + static inline void do_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx) { @@ -36,5 +46,6 @@ static inline unsigned long long get_cpu_clock(void) #define ARCH_HAVE_FFZ #define ARCH_HAVE_CPU_CLOCK +#define ARCH_HAVE_IOURING #endif -- 2.25.1