From 3afd6135456350e1ddfcc12d4225b8929c049d7e Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Mon, 6 Aug 2007 19:58:12 -0600 Subject: [PATCH] [X86-64]: Instead of auto-generating _u_context_i.h, hardcode the necessary offsets in offsets.h as is done for other platforms. This fixes cross-builds. --- src/x86_64/offsets.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/x86_64/offsets.h diff --git a/src/x86_64/offsets.h b/src/x86_64/offsets.h new file mode 100644 index 00000000..56ead697 --- /dev/null +++ b/src/x86_64/offsets.h @@ -0,0 +1,29 @@ +/* This used to be a generated file. But then it breaks cross compilation. + * So use the method used by other architectures. + */ +#ifndef OFFSETS_H +#define OFFSETS_H + +#define REG_OFFSET_RAX 144 +#define REG_OFFSET_RBX 128 +#define REG_OFFSET_RCX 152 +#define REG_OFFSET_RDX 136 +#define REG_OFFSET_RDI 104 +#define REG_OFFSET_RSI 112 +#define REG_OFFSET_RSP 160 +#define REG_OFFSET_RBP 120 +#define REG_OFFSET_R8 40 +#define REG_OFFSET_R9 48 +#define REG_OFFSET_R10 56 +#define REG_OFFSET_R11 64 +#define REG_OFFSET_R12 72 +#define REG_OFFSET_R13 80 +#define REG_OFFSET_R14 88 +#define REG_OFFSET_R15 96 +#define REG_OFFSET_R15 96 +#define REG_OFFSET_R15 96 +#define REG_OFFSET_RIP 168 +#define REG_OFFSET_FPREGS_PTR 224 +#define FPREG_OFFSET_MXCR 24 + +#endif /* OFFSETS_H */