summaryrefslogtreecommitdiff
path: root/arch/arch-mips.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-09-01 07:23:57 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-09-01 07:23:57 +0200
commitc28b912f77c3dafbdcdcf4def2c8c1f9c127100c (patch)
tree7a6cffa77d03ebb6d2462a076397d0a2a46a4f00 /arch/arch-mips.h
parent755c31896364ad2887c07e0383ce639d1f5b52ab (diff)
downloadfio-c28b912f77c3dafbdcdcf4def2c8c1f9c127100c.tar.gz
fio-c28b912f77c3dafbdcdcf4def2c8c1f9c127100c.tar.bz2
MIPS support
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch/arch-mips.h')
-rw-r--r--arch/arch-mips.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arch-mips.h b/arch/arch-mips.h
new file mode 100644
index 00000000..759d3a9f
--- /dev/null
+++ b/arch/arch-mips.h
@@ -0,0 +1,25 @@
+#ifndef ARCH_MIPS64_H
+#define ARCH_MIPS64_H
+
+#define ARCH (arch_mips)
+
+#ifndef __NR_ioprio_set
+#define __NR_ioprio_set 314
+#define __NR_ioprio_get 315
+#endif
+
+#ifndef __NR_fadvise64
+#define __NR_fadvise64 215
+#endif
+
+#ifndef __NR_sys_splice
+#define __NR_sys_splice 263
+#define __NR_sys_tee 265
+#define __NR_sys_vmsplice 266
+#endif
+
+#define read_barrier() __asm__ __volatile__("": : :"memory")
+#define write_barrier() __asm__ __volatile__("": : :"memory")
+#define nop __asm__ __volatile__("": : :"memory")
+
+#endif