From 9cf92718e9f2e82c7d1f2a896b5c93b01f1ad073 Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Wed, 18 May 2011 13:20:56 -0400 Subject: arm: build fixes Get p9p to build cleanly for ARM - based on suggestions from rsc and eekee, plus a final tweak from me. Tested (a bit) on sheevaplug (ubuntu jaunty), Nokia N800 (maemo 4) and Nokia N900 (maemo 5). R=rsc CC=plan9port.codebot http://codereview.appspot.com/4524056 --- src/libthread/threadimpl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libthread/threadimpl.h') 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 -- cgit v1.2.3