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
This commit is contained in:
parent
c1f950fc32
commit
9cf92718e9
5 changed files with 25 additions and 20 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue