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 */