setjmp.S 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* setjmp for HPPA.
  2. Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, write to the Free
  14. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  15. 02111-1307 USA. */
  16. #define _ASM
  17. #define _SETJMP_H
  18. #include <bits/setjmp.h>
  19. .text
  20. .align 4
  21. .import __sigjmp_save, code
  22. .globl __sigsetjmp
  23. .export __sigsetjmp, code
  24. .proc
  25. .callinfo
  26. __sigsetjmp:
  27. stw %r3, 0(%r26)
  28. stw %r4, 8(%r26)
  29. stw %r5, 12(%r26)
  30. stw %r6, 16(%r26)
  31. stw %r7, 20(%r26)
  32. stw %r8, 24(%r26)
  33. stw %r9, 28(%r26)
  34. stw %r10, 32(%r26)
  35. stw %r11, 36(%r26)
  36. stw %r12, 40(%r26)
  37. stw %r13, 44(%r26)
  38. stw %r14, 48(%r26)
  39. stw %r15, 52(%r26)
  40. stw %r16, 56(%r26)
  41. stw %r17, 60(%r26)
  42. stw %r18, 64(%r26)
  43. stw %r19, 68(%r26)
  44. stw %r27, 72(%r26)
  45. stw %r30, 76(%r26)
  46. stw %rp, 80(%r26)
  47. ldo 88(%r26),%r1
  48. fstds,ma %fr12, 8(%r1) /* 88 */
  49. fstds,ma %fr13, 8(%r1) /* 96 */
  50. fstds,ma %fr14, 8(%r1) /* 104 */
  51. fstds,ma %fr15, 8(%r1) /* 112 */
  52. fstds,ma %fr16, 8(%r1) /* 120 */
  53. fstds,ma %fr17, 8(%r1) /* 128 */
  54. fstds,ma %fr18, 8(%r1) /* 136 */
  55. fstds,ma %fr19, 8(%r1) /* 144 */
  56. fstds,ma %fr20, 8(%r1) /* 152 */
  57. fstds %fr21, 0(%r1) /* 160 */
  58. b __sigjmp_save
  59. nop
  60. .procend