add loongarch64 signal.h register index macros

This commit is contained in:
wanghongliang 2024-02-26 02:37:08 +08:00 committed by Rich Felker
parent a7239cbc1b
commit f2c9350543

View File

@ -6,6 +6,17 @@
#define SIGSTKSZ 16384
#endif
#if defined(_GNU_SOURCE)
#define LARCH_NGREG 32
#define LARCH_REG_RA 1
#define LARCH_REG_SP 3
#define LARCH_REG_S0 23
#define LARCH_REG_S1 24
#define LARCH_REG_A0 4
#define LARCH_REG_S2 25
#define LARCH_REG_NARGS 8
#endif
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
typedef unsigned long greg_t, gregset_t[32];