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:
Khem Raj 2022-01-25 20:32:50 -08:00 committed by Rich Felker
parent 8432d16a46
commit d25f0cccb9
2 changed files with 4 additions and 0 deletions

View File

@ -41,7 +41,9 @@ typedef struct mcontext_t {
#define REG_SP 2
#define REG_TP 4
#define REG_S0 8
#define REG_S1 9
#define REG_A0 10
#define REG_S2 18
#endif
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)

View File

@ -41,7 +41,9 @@ typedef struct mcontext_t {
#define REG_SP 2
#define REG_TP 4
#define REG_S0 8
#define REG_S1 9
#define REG_A0 10
#define REG_S2 18
#endif
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)