From bce0218d9a8355f82f76543fc4acdc721e22dcd6 Mon Sep 17 00:00:00 2001 From: caiyinyu Date: Thu, 28 Jul 2022 03:25:40 +0800 Subject: LoongArch: Add greg_t and gregset_t. --- sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h b/sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h index e334a45..db86380 100644 --- a/sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h @@ -38,6 +38,9 @@ #define LARCH_REG_S2 25 #define LARCH_REG_NARGS 8 +typedef unsigned long int greg_t; +/* Container for all general registers. */ +typedef greg_t gregset_t[32]; #endif typedef struct mcontext_t -- cgit v1.1