One more fio_ddir fixup
[fio.git] / arch / arch-x86.h
CommitLineData
ebac4655
JA
1#ifndef ARCH_X86_H
2#define ARCH_X86_H
3
4#define ARCH (arch_i386)
5
6#ifndef __NR_ioprio_set
7#define __NR_ioprio_set 289
8#define __NR_ioprio_get 290
9#endif
10
11#ifndef __NR_fadvise64
12#define __NR_fadvise64 250
13#endif
14
8756e4d4
JA
15#ifndef __NR_sys_splice
16#define __NR_sys_splice 313
17#define __NR_sys_tee 315
18#define __NR_sys_vmsplice 316
19#endif
20
bf0dc8fa 21#ifndef __NR_async_exec
bcd83c12
JA
22#define __NR_async_exec 320
23#define __NR_async_wait 321
24#define __NR_umem_add 322
25#define __NR_async_thread 323
a4f4fdd7
JA
26#endif
27
cb25df61
JA
28#define FIO_HUGE_PAGE 4194304
29
4667c19e
JA
30#define FIO_HAVE_SYSLET
31
ebac4655
JA
32#define nop __asm__ __volatile__("rep;nop": : :"memory")
33
b12ebc65 34static inline unsigned long fio_ffz(unsigned long bitmask)
ebac4655
JA
35{
36 __asm__("bsfl %1,%0" :"=r" (bitmask) :"r" (~bitmask));
37 return bitmask;
38}
39
40#endif