diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-01-25 20:32:50 -0800 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-02-29 16:36:55 -0500 |
commit | d25f0cccb92ba80e14b078f895d656126efdc77f (patch) | |
tree | 3d56efcc6d9a5da70ea879546c1bf866b83e691d /arch/riscv32 | |
parent | 8432d16a4664433b2f9a263aee0d7d829129a7bc (diff) | |
download | musl-d25f0cccb92ba80e14b078f895d656126efdc77f.zip musl-d25f0cccb92ba80e14b078f895d656126efdc77f.tar.gz musl-d25f0cccb92ba80e14b078f895d656126efdc77f.tar.bz2 |
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.
Diffstat (limited to 'arch/riscv32')
-rw-r--r-- | arch/riscv32/bits/signal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv32/bits/signal.h b/arch/riscv32/bits/signal.h index 287367d..271e7da 100644 --- a/arch/riscv32/bits/signal.h +++ b/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) |