uClibc-0.9.30.3-xtensa-005-sigcontext.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. diff -u /dev/null uClibc-0.9.30/libc/sysdeps/linux/xtensa/bits/sigcontext.h
  2. --- /dev/null
  3. +++ uClibc-0.9.30/libc/sysdeps/linux/xtensa/bits/sigcontext.h
  4. @@ -0,0 +1,41 @@
  5. +/* Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  6. + This file is part of the GNU C Library.
  7. +
  8. + The GNU C Library is free software; you can redistribute it and/or
  9. + modify it under the terms of the GNU Lesser General Public
  10. + License as published by the Free Software Foundation; either
  11. + version 2.1 of the License, or (at your option) any later version.
  12. +
  13. + The GNU C Library is distributed in the hope that it will be useful,
  14. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. + Lesser General Public License for more details.
  17. +
  18. + You should have received a copy of the GNU Lesser General Public
  19. + License along with the GNU C Library; if not, write to the Free
  20. + Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
  21. + Boston, MA 02110-1301, USA. */
  22. +
  23. +#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
  24. +# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
  25. +#endif
  26. +
  27. +#ifndef _BITS_SIGCONTEXT_H
  28. +#define _BITS_SIGCONTEXT_H 1
  29. +
  30. +struct sigcontext
  31. +{
  32. + unsigned long sc_pc;
  33. + unsigned long sc_ps;
  34. + unsigned long sc_lbeg;
  35. + unsigned long sc_lend;
  36. + unsigned long sc_lcount;
  37. + unsigned long sc_sar;
  38. + unsigned long sc_acclo;
  39. + unsigned long sc_acchi;
  40. + void *sc_xtregs;
  41. + unsigned long sc_a[16];
  42. +};
  43. +
  44. +#endif /* _BITS_SIGCONTEXT_H */
  45. +