소스 검색

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 년 전
부모
커밋
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)