Browse Source

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.
master
Khem Raj 4 years ago
committed by Rich Felker
parent
commit
d25f0cccb9
  1. 2
      arch/riscv32/bits/signal.h
  2. 2
      arch/riscv64/bits/signal.h

2
arch/riscv32/bits/signal.h

@ -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)

2
arch/riscv64/bits/signal.h

@ -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…
Cancel
Save