[3/3] LoongArch: Add greg_t and gregset_t.

Message ID 20220728073009.2588790-4-caiyinyu@loongson.cn
State Committed
Commit bce0218d9a8355f82f76543fc4acdc721e22dcd6
Headers
Series GLIBC LOONGARCH PATCHES |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

caiyinyu July 28, 2022, 7:30 a.m. UTC
  ---
 sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Adhemerval Zanella Netto July 28, 2022, 12:57 p.m. UTC | #1
On 28/07/22 04:30, caiyinyu wrote:
> ---
>  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 e334a45a44..db86380d55 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


LGTM and it is ok for 2.36, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
  

Patch

diff --git a/sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h b/sysdeps/unix/sysv/linux/loongarch/sys/ucontext.h
index e334a45a44..db86380d55 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