diff options
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/Darwin-power.c | 13 | ||||
-rw-r--r-- | src/libthread/power-ucontext.h | 4 |
2 files changed, 2 insertions, 15 deletions
diff --git a/src/libthread/Darwin-power.c b/src/libthread/Darwin-power.c index e625626c..efcdb18c 100644 --- a/src/libthread/Darwin-power.c +++ b/src/libthread/Darwin-power.c @@ -16,19 +16,6 @@ makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) } int -getcontext(ucontext_t *uc) -{ - return _getmcontext(&uc->mc); -} - -int -setcontext(ucontext_t *uc) -{ - _setmcontext(&uc->mc); - return 0; -} - -int swapcontext(ucontext_t *oucp, ucontext_t *ucp) { if(getcontext(oucp) == 0) diff --git a/src/libthread/power-ucontext.h b/src/libthread/power-ucontext.h index a25d480a..9e500822 100644 --- a/src/libthread/power-ucontext.h +++ b/src/libthread/power-ucontext.h @@ -1,5 +1,5 @@ -#define setcontext(u) _setmcontext(&(u)->uc_mcontext) -#define getcontext(u) _getmcontext(&(u)->uc_mcontext) +#define setcontext(u) _setmcontext(&(u)->mc) +#define getcontext(u) _getmcontext(&(u)->mc) typedef struct mcontext mcontext_t; typedef struct ucontext ucontext_t; struct mcontext |