0001-RISC-V-Remove-riscv-specific-sigcontext.h.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From 4f78efecb2ef9e87a15a3dde8adbdaa53f0598d7 Mon Sep 17 00:00:00 2001
  2. From: Vincent Chen <vincent.chen@sifive.com>
  3. Date: Mon, 13 Sep 2021 09:41:14 +0800
  4. Subject: [PATCH 1/8] RISC-V: Remove riscv-specific sigcontext.h
  5. Remove riscv-specific sigcontext.h so that Glibc can directly use
  6. sigcontext.h provided by the kernel to reduce synchronization work
  7. when new extension support is introduced.
  8. Signed-off-by: max.ma <max.ma@starfivetech.com>
  9. ---
  10. .../unix/sysv/linux/riscv/bits/sigcontext.h | 31 -------------------
  11. 1 file changed, 31 deletions(-)
  12. delete mode 100644 sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h
  13. diff --git a/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h b/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h
  14. deleted file mode 100644
  15. index 14e4e06fac..0000000000
  16. --- a/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h
  17. +++ /dev/null
  18. @@ -1,31 +0,0 @@
  19. -/* Machine-dependent signal context structure for Linux. RISC-V version.
  20. - Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the GNU C Library.
  21. -
  22. - The GNU C Library is free software; you can redistribute it and/or
  23. - modify it under the terms of the GNU Lesser General Public
  24. - License as published by the Free Software Foundation; either
  25. - version 2.1 of the License, or (at your option) any later version.
  26. -
  27. - The GNU C Library is distributed in the hope that it will be useful,
  28. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  29. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  30. - Lesser General Public License for more details.
  31. -
  32. - You should have received a copy of the GNU Lesser General Public
  33. - License along with the GNU C Library. If not, see
  34. - <https://www.gnu.org/licenses/>. */
  35. -
  36. -#ifndef _BITS_SIGCONTEXT_H
  37. -#define _BITS_SIGCONTEXT_H 1
  38. -
  39. -#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
  40. -# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
  41. -#endif
  42. -
  43. -struct sigcontext {
  44. - /* gregs[0] holds the program counter. */
  45. - unsigned long int gregs[32];
  46. - unsigned long long int fpregs[66] __attribute__ ((__aligned__ (16)));
  47. -};
  48. -
  49. -#endif
  50. --
  51. 2.33.1