Jens Axboe | 697a606 | 2008-05-31 00:04:45 +0200 | [diff] [blame] | 1 | #ifndef ARCH_SPARC_H |
| 2 | #define ARCH_SPARC_H |
| 3 | |
Jens Axboe | cca8464 | 2011-10-07 12:47:57 +0200 | [diff] [blame^] | 4 | #define FIO_ARCH (arch_sparc) |
Jens Axboe | 697a606 | 2008-05-31 00:04:45 +0200 | [diff] [blame] | 5 | |
| 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 Axboe | 44c47fe | 2008-06-04 14:31:25 +0200 | [diff] [blame] | 24 | #define write_barrier() __asm__ __volatile__ ("" : : : "memory") |
Jens Axboe | 697a606 | 2008-05-31 00:04:45 +0200 | [diff] [blame] | 25 | |
Jens Axboe | 697a606 | 2008-05-31 00:04:45 +0200 | [diff] [blame] | 26 | #endif |