Explorar el Código

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.
Khem Raj hace 3 años
padre
commit
d25f0cccb9
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 2 0
      arch/riscv32/bits/signal.h
  2. 2 0
      arch/riscv64/bits/signal.h

+ 2 - 0
arch/riscv32/bits/signal.h

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

+ 2 - 0
arch/riscv64/bits/signal.h

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