diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/barrier.h | 3 | ||||
-rw-r--r-- | src/syscall.c | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/barrier.h b/src/barrier.h index 0fd5c39..2076c1c 100644 --- a/src/barrier.h +++ b/src/barrier.h @@ -4,6 +4,9 @@ #if defined(__x86_64) #define read_barrier() __asm__ __volatile__("lfence":::"memory") #define write_barrier() __asm__ __volatile__("sfence":::"memory") +#elif defined(__i386__) +#define read_barrier() __asm__ __volatile__("": : :"memory") +#define write_barrier() __asm__ __volatile__("": : :"memory") #else /* * Add arch appropriate definitions. Be safe and use full barriers for diff --git a/src/syscall.c b/src/syscall.c index 6347244..a625b47 100644 --- a/src/syscall.c +++ b/src/syscall.c @@ -16,6 +16,16 @@ #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 +#endif #else #error "Arch not supported yet" #endif |