move eventfd stuff out to own file
[trinity.git] / include / arch.h
blob92c1aafb936794c42e4e03949e8fbe2aa5614b5b
1 #pragma once
3 #include "types.h"
5 #ifdef __x86_64__
6 #include "arch-x86-64.h"
7 #endif
9 #ifdef __i386__
10 #include "arch-i386.h"
11 #endif
13 #ifdef __powerpc__
14 #include "arch-ppc.h"
15 #endif
17 #ifdef __ia64__
18 #include "arch-ia64.h"
19 #endif
21 #ifdef __sparc__
22 #include "arch-sparc.h"
23 #endif
25 #ifdef __s390__
26 #include "arch-s390.h"
27 #endif
29 #ifdef __arm__
30 #include "arch-arm.h"
31 #endif
33 #ifdef __mips__
34 #include "arch-mips.h"
35 #endif
37 #ifdef __sh__
38 #include "arch-sh.h"
39 #endif
41 #ifdef __alpha__
42 #include "arch-alpha.h"
43 #endif
45 #ifdef __aarch64__
46 #include "arch-aarch64.h"
47 #endif
49 #ifdef __hppa__
50 #include "arch-parisc.h"
51 #endif
53 #ifndef SYSCALL_OFFSET
54 #define SYSCALL_OFFSET 0
55 #endif
57 #define PAGE_MASK (~(page_size - 1))
58 extern unsigned int page_size;
60 extern bool biarch;