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:
parent
830fedd28f
commit
499c499c61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68926
@ -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!"
|
||||
|
@ -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!"
|
||||
|
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user