aboutsummaryrefslogtreecommitdiff
path: root/lib/darwin/thread-state.h
diff options
context:
space:
mode:
authorcomex2015-01-21 18:24:08 -0500
committercomex2015-01-21 18:24:08 -0500
commit2795a1a5b34bffc350f9366fcf05a6165067eafa (patch)
tree23d2a31654b4306637fc56796d82962abec3a337 /lib/darwin/thread-state.h
parentadd substitute_strerror (diff)
downloadsubstitute-2795a1a5b34bffc350f9366fcf05a6165067eafa.tar.gz
stopping other threads.
Diffstat (limited to '')
-rw-r--r--lib/darwin/thread-state.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/darwin/thread-state.h b/lib/darwin/thread-state.h
new file mode 100644
index 0000000..0bae7be
--- /dev/null
+++ b/lib/darwin/thread-state.h
@@ -0,0 +1,24 @@
+#pragma once
+#include <stdint.h>
+
+struct _x86_thread_state_32 {
+ uint32_t eax, ebx, ecx, edx, edi, esi, ebp, esp;
+ uint32_t ss, eflags, eip, cs, ds, es, fs, gs;
+};
+#define _x86_thread_state_32_flavor 1
+struct _x86_thread_state_64 {
+ uint64_t rax, rbx, rcx, rdx, rdi, rsi, rbp, rsp;
+ uint64_t r8, r9, r10, r11, r12, r13, r14, r15;
+ uint64_t rip, rflags, cs, fs, gs;
+};
+#define _x86_thread_state_64_flavor 4
+struct _arm_thread_state_32 {
+ uint32_t r[13], sp, lr, pc, cpsr;
+};
+#define _arm_thread_state_32_flavor 9
+struct _arm_thread_state_64 {
+ uint64_t x[29], fp, lr, sp, pc;
+ uint32_t cpsr, pad;
+};
+#define _arm_thread_state_64_flavor 6
+