0009-Revert-RISC-V-Reserve-about-5K-space-in-mcontext_t-t.patch 980 B

123456789101112131415161718192021222324252627
  1. From 0e504f890152ef8c96f4a5913dddd8179dbc1f71 Mon Sep 17 00:00:00 2001
  2. From: "max.ma" <max.ma@starfivetech.com>
  3. Date: Wed, 9 Feb 2022 23:04:46 -0800
  4. Subject: [PATCH 09/12] Revert "RISC-V: Reserve about 5K space in mcontext_t to
  5. support future ISA expansion."
  6. This reverts commit bcface37cf6df3f3b0800f79e4282a690122b0c8.
  7. ---
  8. sysdeps/unix/sysv/linux/riscv/sys/ucontext.h | 2 --
  9. 1 file changed, 2 deletions(-)
  10. diff --git a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h
  11. index 80caf078fc..cfafa44f99 100644
  12. --- a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h
  13. +++ b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h
  14. @@ -82,8 +82,6 @@ typedef struct mcontext_t
  15. {
  16. __riscv_mc_gp_state __gregs;
  17. union __riscv_mc_fp_state __fpregs;
  18. - /* 5K + 256 reserved for vector state and future expansion. */
  19. - unsigned char __reserved[5376] __attribute__ ((__aligned__ (16)));
  20. } mcontext_t;
  21. /* Userlevel context. */
  22. --
  23. 2.33.1