summaryrefslogtreecommitdiffstats
path: root/src/libthread/Linux.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-11-04 16:34:19 +0000
committerrsc <devnull@localhost>2005-11-04 16:34:19 +0000
commit1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a (patch)
tree2df6702fe73590dbf26e59a854d903481362574a /src/libthread/Linux.c
parentb4d5d19438106b3904185eb9ba7d6e1b8b0cfdf7 (diff)
downloadplan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.tar.gz
plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.zip
use macro for getcontext (setjmp)
Diffstat (limited to 'src/libthread/Linux.c')
-rw-r--r--src/libthread/Linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libthread/Linux.c b/src/libthread/Linux.c
index 5f7f862e..969c19f2 100644
--- a/src/libthread/Linux.c
+++ b/src/libthread/Linux.c
@@ -437,8 +437,8 @@ _threadpexit(void)
}
#ifdef __arm__
-extern int getmcontext(mcontext_t*);
-extern int setmcontext(const mcontext_t*);
+#define setcontext(u) setmcontext(&(u)->uc_mcontext)
+#define getcontext(u) getmcontext(&(u)->uc_mcontext)
void
makecontext(ucontext_t *uc, void (*fn)(void), int argc, ...)