Add os/os-linux-syscall.h to separate syscall NR from arch headers
[fio.git] / arch / arch.h
CommitLineData
ebac4655
JA
1#ifndef ARCH_H
2#define ARCH_H
3
4enum {
cca84643 5 arch_x86_64 = 1,
ebac4655
JA
6 arch_i386,
7 arch_ppc,
8 arch_ia64,
9 arch_s390,
10 arch_alpha,
697a606c
JA
11 arch_sparc,
12 arch_sparc64,
a1ea676e 13 arch_arm,
29721c9c 14 arch_sh,
85a86319 15 arch_hppa,
5499f7ff 16 arch_mips,
78c8831e 17 arch_aarch64,
fa77073a
JA
18
19 arch_generic,
cca84643
JA
20
21 arch_nr,
ebac4655
JA
22};
23
5f739e0e
NI
24enum {
25 ARCH_FLAG_1 = 1 << 0,
26 ARCH_FLAG_2 = 1 << 1,
27 ARCH_FLAG_3 = 1 << 2,
28 ARCH_FLAG_4 = 1 << 3,
29};
30
4247d1a9
JA
31extern unsigned long arch_flags;
32
96170421
CE
33#define ARCH_CPU_CLOCK_WRAPS
34
ebac4655
JA
35#if defined(__i386__)
36#include "arch-x86.h"
37#elif defined(__x86_64__)
38#include "arch-x86_64.h"
2afd826b 39#elif defined(__powerpc__) || defined(__powerpc64__) || defined(__ppc__)
ebac4655
JA
40#include "arch-ppc.h"
41#elif defined(__ia64__)
42#include "arch-ia64.h"
43#elif defined(__alpha__)
44#include "arch-alpha.h"
45#elif defined(__s390x__) || defined(__s390__)
46#include "arch-s390.h"
697a606c
JA
47#elif defined(__sparc__)
48#include "arch-sparc.h"
49#elif defined(__sparc64__)
50#include "arch-sparc64.h"
a1ea676e
KS
51#elif defined(__arm__)
52#include "arch-arm.h"
c28b912f
JA
53#elif defined(__mips__) || defined(__mips64__)
54#include "arch-mips.h"
29721c9c
NI
55#elif defined(__sh__)
56#include "arch-sh.h"
85a86319
JA
57#elif defined(__hppa__)
58#include "arch-hppa.h"
78c8831e
DK
59#elif defined(__aarch64__)
60#include "arch-aarch64.h"
ebac4655 61#else
fa77073a
JA
62#warning "Unknown architecture, attempting to use generic model."
63#include "arch-generic.h"
ebac4655
JA
64#endif
65
8f7e39dd 66#include "../lib/ffz.h"
8f7e39dd 67
d3cc4ebf
JA
68#ifndef ARCH_HAVE_INIT
69static inline int arch_init(char *envp[])
70{
71 return 0;
72}
73#endif
74
ebac4655 75#endif