Merge "Guard registers definitions for riscv64"
This commit is contained in:
commit
78f71a53e5
1 changed files with 4 additions and 0 deletions
|
@ -316,6 +316,8 @@ typedef struct ucontext {
|
|||
|
||||
#define NGREG 32
|
||||
|
||||
#if defined(__USE_GNU)
|
||||
|
||||
#define REG_PC 0
|
||||
#define REG_RA 1
|
||||
#define REG_SP 2
|
||||
|
@ -323,6 +325,8 @@ typedef struct ucontext {
|
|||
#define REG_S0 8
|
||||
#define REG_A0 10
|
||||
|
||||
#endif // defined(__USE_GNU)
|
||||
|
||||
typedef unsigned long __riscv_mc_gp_state[NGREG];
|
||||
|
||||
typedef unsigned long greg_t;
|
||||
|
|
Loading…
Reference in a new issue