blob: fe47b80374e6d1afb9a843134f46adfb0081de29 [file] [log] [blame]
Jens Axboe697a6062008-05-31 00:04:45 +02001#ifndef ARCH_SPARC_H
2#define ARCH_SPARC_H
3
Jens Axboecca84642011-10-07 12:47:57 +02004#define FIO_ARCH (arch_sparc)
Jens Axboe697a6062008-05-31 00:04:45 +02005
6#ifndef __NR_ioprio_set
7#define __NR_ioprio_set 196
8#define __NR_ioprio_get 218
9#endif
10
11#ifndef __NR_fadvise64
12#define __NR_fadvise64 209
13#endif
14
15#ifndef __NR_sys_splice
16#define __NR_sys_splice 232
17#define __NR_sys_tee 280
18#define __NR_sys_vmsplice 25
19#endif
20
21#define nop do { } while (0)
22
23#define read_barrier() __asm__ __volatile__ ("" : : : "memory")
Jens Axboe44c47fe2008-06-04 14:31:25 +020024#define write_barrier() __asm__ __volatile__ ("" : : : "memory")
Jens Axboe697a6062008-05-31 00:04:45 +020025
Jens Axboe697a6062008-05-31 00:04:45 +020026#endif