add common routine for setting a1/a2 for start/len of mmap.
[trinity.git] / include / arch.h
blob5abb322cf5494d0766248233f1fd50d6bd9b55da
1 #ifndef _ARCH_H
2 #define _ARCH_H 1
4 #include "types.h"
6 #ifdef __x86_64__
7 #include "arch-x86-64.h"
8 #endif
10 #ifdef __i386__
11 #include "arch-i386.h"
12 #endif
14 #ifdef __powerpc__
15 #include "arch-ppc.h"
16 #endif
18 #ifdef __ia64__
19 #include "arch-ia64.h"
20 #endif
22 #ifdef __sparc__
23 #include "arch-sparc.h"
24 #endif
26 #ifdef __s390__
27 #include "arch-s390.h"
28 #endif
30 #ifdef __arm__
31 #include "arch-arm.h"
32 #endif
34 #ifdef __mips__
35 #include "arch-mips.h"
36 #endif
38 #ifdef __sh__
39 #include "arch-sh.h"
40 #endif
42 #ifdef __alpha__
43 #include "arch-alpha.h"
44 #endif
46 #ifdef __aarch64__
47 #include "arch-aarch64.h"
48 #endif
50 #ifdef __hppa__
51 #include "arch-parisc.h"
52 #endif
54 #ifndef SYSCALL_OFFSET
55 #define SYSCALL_OFFSET 0
56 #endif
58 #define PAGE_MASK (~(page_size - 1))
59 extern unsigned int page_size;
61 extern bool biarch;
63 #endif /* _ARCH_H */