diff options
author | rsc <devnull@localhost> | 2005-01-14 18:11:21 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-14 18:11:21 +0000 |
commit | 2b3b1e8984849541761d0272ba1ad376f5f5a82b (patch) | |
tree | b5855a4d187a5ff27dfeef99f64a91116ea4aee2 | |
parent | 399ab50aa45b7501891654b72ce7e2c8b3995ec3 (diff) | |
download | plan9port-2b3b1e8984849541761d0272ba1ad376f5f5a82b.tar.gz plan9port-2b3b1e8984849541761d0272ba1ad376f5f5a82b.tar.bz2 plan9port-2b3b1e8984849541761d0272ba1ad376f5f5a82b.zip |
oops sunos
-rw-r--r-- | src/libthread/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c index b886e30b..d79bd1a9 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -121,9 +121,9 @@ threadalloc(void (*fn)(void*), void *arg, uint stack) t->context.uc.uc_stack.ss_size = t->stksize-64; #ifdef __sun__ /* sigh */ /* can avoid this with __MAKECONTEXT_V2_SOURCE but only on SunOS 5.9 */ - t->context.uc_stack.ss_sp = - (char*)t->context.uc_stack.ss_sp - +t->context.uc_stack.ss_size; + t->context.uc.uc_stack.ss_sp = + (char*)t->context.uc.uc_stack.ss_sp + +t->context.uc.uc_stack.ss_size; #endif makecontext(&t->context.uc, (void(*)())threadstart, 1, t); |