summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2000-11-20 01:57:19 +0000
committerdeischen <deischen@FreeBSD.org>2000-11-20 01:57:19 +0000
commit7d8a00561233be5c4ecfe188e55c8e3770012ae1 (patch)
tree34d9758c2f3dd959d5ab8b61d3a28790850e6f44 /lib/libc_r
parent5870a97ec2c2e7bb1e0095de97f57af8ede5e725 (diff)
downloadFreeBSD-src-7d8a00561233be5c4ecfe188e55c8e3770012ae1.zip
FreeBSD-src-7d8a00561233be5c4ecfe188e55c8e3770012ae1.tar.gz
Fix MD macros to work for alpha. Without this fix, threads under alpha
seem to be totally broke. MFC Candidate Submitted by: gallatin
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/pthread_private.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h
index 9d6bc31..2c9a469 100644
--- a/lib/libc_r/uthread/pthread_private.h
+++ b/lib/libc_r/uthread/pthread_private.h
@@ -95,10 +95,10 @@
#define SET_STACK_UC(ucp, stk) (ucp)->uc_mcontext.mc_regs[R_SP] = (unsigned long)(stk)
#define FP_SAVE_UC(ucp)
#define FP_RESTORE_UC(ucp)
-#define SET_RETURN_ADDR_JB(jb, ra) do { \
- (jb)[0]._jb[2] = (long)(ra); \
- (jb)[0]._jb[R_RA + 4] = 0; \
- (jb)[0]._jb[R_T12 + 4] = (long)(ra); \
+#define SET_RETURN_ADDR_JB(jb, ra) do { \
+ (jb)[0]._jb[2] = (unsigned long)(ra) + 8UL; \
+ (jb)[0]._jb[R_RA + 4] = 0; \
+ (jb)[0]._jb[R_T12 + 4] = (long)(ra); \
} while (0)
#else
#error "Don't recognize this architecture!"
OpenPOWER on IntegriCloud