Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 1 | #ifndef ARCH_ALPHA_H |
| 2 | #define ARCH_ALPHA_H |
| 3 | |
Jens Axboe | cca8464 | 2011-10-07 12:47:57 +0200 | [diff] [blame] | 4 | #define FIO_ARCH (arch_alpha) |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 5 | |
| 6 | #ifndef __NR_ioprio_set |
| 7 | #define __NR_ioprio_set 442 |
| 8 | #define __NR_ioprio_get 443 |
| 9 | #endif |
| 10 | |
| 11 | #ifndef __NR_fadvise64 |
| 12 | #define __NR_fadvise64 413 |
| 13 | #endif |
| 14 | |
Jens Axboe | 9a9c63f | 2008-06-04 14:48:29 +0200 | [diff] [blame] | 15 | #ifndef __NR_sys_splice |
| 16 | #define __NR_sys_splice 468 |
| 17 | #define __NR_sys_tee 470 |
| 18 | #define __NR_sys_vmsplice 471 |
| 19 | #endif |
| 20 | |
Jens Axboe | 44c47fe | 2008-06-04 14:31:25 +0200 | [diff] [blame] | 21 | #define nop do { } while (0) |
| 22 | #define read_barrier() __asm__ __volatile__("mb": : :"memory") |
Martin Steigerwald | d9fcf07 | 2009-09-10 09:44:29 +0200 | [diff] [blame] | 23 | #define write_barrier() __asm__ __volatile__("wmb": : :"memory") |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 24 | |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 25 | #endif |