X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=arch%2Farch.h;h=31d96d403167dd3435b6f9e66e68a055f605e7b6;hb=b511c9aaa5f289596b05743c5b8e40451017129c;hp=b4f26307c6eeee3bd34901091d1d668b59a5e587;hpb=29721c9ce4f85775ff77dcb04bd26a7f10272e47;p=fio.git diff --git a/arch/arch.h b/arch/arch.h index b4f26307..31d96d40 100644 --- a/arch/arch.h +++ b/arch/arch.h @@ -1,14 +1,8 @@ #ifndef ARCH_H #define ARCH_H -#ifdef __WORDSIZE -#define BITS_PER_LONG __WORDSIZE -#else -#define BITS_PER_LONG 32 -#endif - enum { - arch_x86_64, + arch_x86_64 = 1, arch_i386, arch_ppc, arch_ia64, @@ -18,10 +12,23 @@ enum { arch_sparc64, arch_arm, arch_sh, + arch_hppa, + arch_mips, arch_generic, + + arch_nr, +}; + +enum { + ARCH_FLAG_1 = 1 << 0, + ARCH_FLAG_2 = 1 << 1, + ARCH_FLAG_3 = 1 << 2, + ARCH_FLAG_4 = 1 << 3, }; +extern unsigned long arch_flags; + #if defined(__i386__) #include "arch-x86.h" #elif defined(__x86_64__) @@ -44,6 +51,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" @@ -55,4 +64,11 @@ enum { #include "../lib/ffz.h" #endif +#ifndef ARCH_HAVE_INIT +static inline int arch_init(char *envp[]) +{ + return 0; +} +#endif + #endif