Просмотр исходного кода

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 3 лет назад
Родитель
Сommit
d25f0cccb9
2 измененных файлов с 4 добавлено и 0 удалено
  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)