aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/threadimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r--src/libthread/threadimpl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index f5c44f63..8b931ae7 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -73,10 +73,10 @@ but surely the latter would be defined(__sparc__).
*/
#if defined(__arm__)
-int mygetmcontext(mcontext_t*);
-void mysetmcontext(const mcontext_t*);
-#define setcontext(u) mysetmcontext(&(u)->uc_mcontext)
-#define getcontext(u) mygetmcontext(&(u)->uc_mcontext)
+int mygetmcontext(ulong*);
+void mysetmcontext(const ulong*);
+#define setcontext(u) mysetmcontext(&(u)->uc_mcontext.arm_r0)
+#define getcontext(u) mygetmcontext(&(u)->uc_mcontext.arm_r0)
#endif