From d25f0cccb92ba80e14b078f895d656126efdc77f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 25 Jan 2022 20:32:50 -0800 Subject: 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. --- arch/riscv64/bits/signal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/riscv64/bits/signal.h') diff --git a/arch/riscv64/bits/signal.h b/arch/riscv64/bits/signal.h index fd6157a3..6a53feb7 100644 --- a/arch/riscv64/bits/signal.h +++ b/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) -- cgit v1.2.1