summaryrefslogtreecommitdiff
path: root/src/third_party/unwind/dist/src/sh/offsets.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/unwind/dist/src/sh/offsets.h')
-rw-r--r--src/third_party/unwind/dist/src/sh/offsets.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/third_party/unwind/dist/src/sh/offsets.h b/src/third_party/unwind/dist/src/sh/offsets.h
new file mode 100644
index 00000000000..b02d8aee1e0
--- /dev/null
+++ b/src/third_party/unwind/dist/src/sh/offsets.h
@@ -0,0 +1,32 @@
+/* Linux-specific definitions: */
+
+/* Define various structure offsets to simplify cross-compilation. */
+
+/* Offsets for SH Linux "ucontext_t": */
+
+#define LINUX_UC_FLAGS_OFF 0x0
+#define LINUX_UC_LINK_OFF 0x4
+#define LINUX_UC_STACK_OFF 0x8
+#define LINUX_UC_MCONTEXT_OFF 0x14
+#define LINUX_UC_SIGMASK_OFF 0xFC
+
+/* Offsets for SH Linux "struct sigcontext": */
+
+#define LINUX_SC_R0_OFF 0x4
+#define LINUX_SC_R1_OFF 0x8
+#define LINUX_SC_R2_OFF 0xC
+#define LINUX_SC_R3_OFF 0x10
+#define LINUX_SC_R4_OFF 0x14
+#define LINUX_SC_R5_OFF 0x18
+#define LINUX_SC_R6_OFF 0x1C
+#define LINUX_SC_R7_OFF 0x20
+#define LINUX_SC_R8_OFF 0x24
+#define LINUX_SC_R9_OFF 0x28
+#define LINUX_SC_R10_OFF 0x2C
+#define LINUX_SC_R11_OFF 0x30
+#define LINUX_SC_R12_OFF 0x34
+#define LINUX_SC_R13_OFF 0x38
+#define LINUX_SC_R14_OFF 0x3C
+#define LINUX_SC_R15_OFF 0x40
+#define LINUX_SC_PC_OFF 0x44
+#define LINUX_SC_PR_OFF 0x48