1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
#pragma once
#include "types.h"
#ifdef __x86_64__
#include "arch-x86-64.h"
#endif
#ifdef __i386__
#include "arch-i386.h"
#endif
#ifdef __powerpc__
#include "arch-ppc.h"
#endif
#ifdef __ia64__
#include "arch-ia64.h"
#endif
#ifdef __sparc__
#include "arch-sparc.h"
#endif
#ifdef __s390__
#include "arch-s390.h"
#endif
#ifdef __arm__
#include "arch-arm.h"
#endif
#ifdef __mips__
#include "arch-mips.h"
#endif
#ifdef __sh__
#include "arch-sh.h"
#endif
#ifdef __alpha__
#include "arch-alpha.h"
#endif
#ifdef __aarch64__
#include "arch-aarch64.h"
#endif
#ifdef __hppa__
#include "arch-parisc.h"
#endif
#ifdef __tile__
#include "arch-tile.h"
#endif
#if defined(__riscv) || defined(__riscv__)
#if __riscv_xlen == 64
#include "arch-riscv64.h"
#else
#error "riscv32 is not supported yet."
#endif
#endif
#ifndef SYSCALL_OFFSET
#define SYSCALL_OFFSET 0
#endif
#define PAGE_MASK (~(page_size - 1))
extern unsigned int page_size;
extern bool biarch;
|