From 85a863194fe44f815fe8d88cfc3dde6b22009c06 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 22 Feb 2010 14:08:43 +0100 Subject: [PATCH] PA-RISC support Signed-off-by: Jens Axboe --- arch/arch-hppa.h | 26 ++++++++++++++++++++++++++ arch/arch.h | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 arch/arch-hppa.h diff --git a/arch/arch-hppa.h b/arch/arch-hppa.h new file mode 100644 index 00000000..c865a891 --- /dev/null +++ b/arch/arch-hppa.h @@ -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 diff --git a/arch/arch.h b/arch/arch.h index b4f26307..8cafa118 100644 --- a/arch/arch.h +++ b/arch/arch.h @@ -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" -- 2.25.1