summaryrefslogtreecommitdiff
path: root/src/tilegx/offsets.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tilegx/offsets.h')
-rw-r--r--src/tilegx/offsets.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tilegx/offsets.h b/src/tilegx/offsets.h
new file mode 100644
index 00000000..6d30f1ed
--- /dev/null
+++ b/src/tilegx/offsets.h
@@ -0,0 +1,12 @@
+/* Linux-specific definitions: */
+
+/* Define various structure offsets to simplify cross-compilation. */
+
+/* Offsets for TILEGX Linux "ucontext_t": */
+
+#define LINUX_UC_FLAGS_OFF 0x0
+#define LINUX_UC_LINK_OFF 0x8
+#define LINUX_UC_STACK_OFF 0x10
+#define LINUX_UC_MCONTEXT_OFF 0x28
+#define LINUX_UC_SIGMASK_OFF 0x228
+#define LINUX_UC_MCONTEXT_GREGS 0x28