mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-23 06:32:05 +03:00
riscv: define REG_S1 and REG_S2
These are used by applications to access members of mcontext, and are also defined by other libcs on linux.
This commit is contained in:
parent
8432d16a46
commit
d25f0cccb9
@ -41,7 +41,9 @@ typedef struct mcontext_t {
|
|||||||
#define REG_SP 2
|
#define REG_SP 2
|
||||||
#define REG_TP 4
|
#define REG_TP 4
|
||||||
#define REG_S0 8
|
#define REG_S0 8
|
||||||
|
#define REG_S1 9
|
||||||
#define REG_A0 10
|
#define REG_A0 10
|
||||||
|
#define REG_S2 18
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
@ -41,7 +41,9 @@ typedef struct mcontext_t {
|
|||||||
#define REG_SP 2
|
#define REG_SP 2
|
||||||
#define REG_TP 4
|
#define REG_TP 4
|
||||||
#define REG_S0 8
|
#define REG_S0 8
|
||||||
|
#define REG_S1 9
|
||||||
#define REG_A0 10
|
#define REG_A0 10
|
||||||
|
#define REG_S2 18
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
Loading…
Reference in New Issue
Block a user