Merge "Guard registers definitions for riscv64" am: 78f71a53e5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2474284 Change-Id: Ifd223031914e330d61200a3012f448d37b3d4eea Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
18604dac1f
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