RISC-V: Fix alignment issue in sigjmp_buf
This commit is contained in:
parent
4cd1905add
commit
cba678ba02
|
@ -359,7 +359,9 @@ _BEGIN_STD_C
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __riscv
|
#ifdef __riscv
|
||||||
#define _JBTYPE long
|
/* _JBTYPE using long long to make sure the alignment is align to 8 byte,
|
||||||
|
otherwise in rv32imafd, store/restore FPR may mis-align. */
|
||||||
|
#define _JBTYPE long long
|
||||||
#ifdef __riscv_32e
|
#ifdef __riscv_32e
|
||||||
#define _JBLEN ((4*sizeof(long))/sizeof(long))
|
#define _JBLEN ((4*sizeof(long))/sizeof(long))
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue