PA-RISC support
authorJens Axboe <jens.axboe@oracle.com>
Mon, 22 Feb 2010 13:08:43 +0000 (14:08 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 22 Feb 2010 13:08:43 +0000 (14:08 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
arch/arch-hppa.h [new file with mode: 0644]
arch/arch.h

diff --git a/arch/arch-hppa.h b/arch/arch-hppa.h
new file mode 100644 (file)
index 0000000..c865a89
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef ARCH_HPPA_H
+#define ARCH_HPPA_H
+
+#define ARCH   (arch_hppa)
+
+#ifndef __NR_ioprio_set
+#define __NR_ioprio_set                267
+#define __NR_ioprio_get                268
+#endif
+
+#ifndef __NR_fadvise64
+#define __NR_fadvise64         236
+#endif
+
+#ifndef __NR_sys_splice
+#define __NR_sys_splice                291
+#define __NR_sys_tee           293
+#define __NR_sys_vmsplice      294
+#endif
+
+#define nop    do { } while (0)
+
+#define read_barrier() __asm__ __volatile__ ("" : : : "memory")
+#define write_barrier()        __asm__ __volatile__ ("" : : : "memory")
+
+#endif
index b4f2630..8cafa11 100644 (file)
@@ -18,6 +18,7 @@ enum {
        arch_sparc64,
        arch_arm,
        arch_sh,
+       arch_hppa,
 
        arch_generic,
 };
@@ -44,6 +45,8 @@ enum {
 #include "arch-mips.h"
 #elif defined(__sh__)
 #include "arch-sh.h"
+#elif defined(__hppa__)
+#include "arch-hppa.h"
 #else
 #warning "Unknown architecture, attempting to use generic model."
 #include "arch-generic.h"