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 | |
parent | 8432d16a4664433b2f9a263aee0d7d829129a7bc (diff) | |
download | musl-d25f0cccb92ba80e14b078f895d656126efdc77f.tar.gz musl-d25f0cccb92ba80e14b078f895d656126efdc77f.tar.xz musl-d25f0cccb92ba80e14b078f895d656126efdc77f.zip |
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')
-rw-r--r-- | arch/riscv32/bits/signal.h | 2 | ||||
-rw-r--r-- | arch/riscv64/bits/signal.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv32/bits/signal.h b/arch/riscv32/bits/signal.h index 287367db..271e7da6 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) 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) |