From bcface37cf6df3f3b0800f79e4282a690122b0c8 Mon Sep 17 00:00:00 2001 From: Vincent Chen Date: Mon, 13 Sep 2021 09:41:15 +0800 Subject: [PATCH 2/8] RISC-V: Reserve about 5K space in mcontext_t to support future ISA expansion. Following the changes of struct sigcontext in Linux to reserve about 5K space to support future ISA expansion. Signed-off-by: max.ma --- sysdeps/unix/sysv/linux/riscv/sys/ucontext.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h index cfafa44f99..80caf078fc 100644 --- a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h @@ -82,6 +82,8 @@ typedef struct mcontext_t { __riscv_mc_gp_state __gregs; union __riscv_mc_fp_state __fpregs; + /* 5K + 256 reserved for vector state and future expansion. */ + unsigned char __reserved[5376] __attribute__ ((__aligned__ (16))); } mcontext_t; /* Userlevel context. */ -- 2.33.1