summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-23 08:03:41 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-23 08:03:41 -0700
commitbceccde79a3d7d701a6b1aacfc8796b3fc4c6e33 (patch)
tree5825bd644998e069df7d402945f25aba3e350827 /src
parent81f9d4616e969693ff11026fd954f23ccc560bee (diff)
System calls have been renumbered
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r--src/syscall.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/syscall.c b/src/syscall.c
index d0e35d2..0ad5c13 100644
--- a/src/syscall.c
+++ b/src/syscall.c
@@ -7,25 +7,15 @@
#include "compat.h"
#include "io_uring.h"
-#if defined(__x86_64)
+#if defined(__x86_64) || defined(__i386__)
#ifndef __NR_sys_io_uring_setup
-#define __NR_sys_io_uring_setup 335
+#define __NR_sys_io_uring_setup 425
#endif
#ifndef __NR_sys_io_uring_enter
-#define __NR_sys_io_uring_enter 336
+#define __NR_sys_io_uring_enter 426
#endif
#ifndef __NR_sys_io_uring_register
-#define __NR_sys_io_uring_register 337
-#endif
-#elif defined(__i386__)
-#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
+#define __NR_sys_io_uring_register 427
#endif
#else
#error "Arch not supported yet"