1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Fix MD macros to work for alpha. Without this fix, threads under alpha

seem to be totally broke.

MFC Candidate

Submitted by:	gallatin
This commit is contained in:
Daniel Eischen 2000-11-20 01:57:19 +00:00
parent 830fedd28f
commit 499c499c61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68926
3 changed files with 12 additions and 12 deletions

View File

@ -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!"

View File

@ -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!"

View File

@ -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!"