[RFC patch 2/5] RISC-V: Reserve about 5K space in mcontext_t to support future ISA expansion.
Vincent Chen
vincent.chen@sifive.com
Mon Sep 13 01:41:15 GMT 2021
Following the changes of struct sigcontext in Linux to reserve about 5K space
to support future ISA expansion.
---
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 cfafa44..80caf07 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.7.4
More information about the Libc-alpha
mailing list