__longjmp.S 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Copyright (C) 1997-2016 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public License as
  5. published by the Free Software Foundation; either version 2.1 of the
  6. License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library. If not, see
  13. <http://www.gnu.org/licenses/>. */
  14. #include <sysdep.h>
  15. ENTRY(__longjmp)
  16. lwi r1, r5, 0
  17. lwi r15, r5, 4
  18. lwi r2, r5, 8
  19. lwi r13, r5, 12
  20. lwi r18, r5, 16
  21. lwi r19, r5, 20
  22. lwi r20, r5, 24
  23. lwi r21, r5, 28
  24. lwi r22, r5, 32
  25. lwi r23, r5, 36
  26. lwi r24, r5, 40
  27. lwi r25, r5, 44
  28. lwi r26, r5, 48
  29. lwi r27, r5, 52
  30. lwi r28, r5, 56
  31. lwi r29, r5, 60
  32. lwi r30, r5, 64
  33. lwi r31, r5, 68
  34. addk r3,r6,r0
  35. beqi r3,L(return_1)
  36. rtsd r15,8
  37. nop
  38. L(return_1):
  39. rtsd r15,8
  40. addik r3,r0,1 /* delay slot. */
  41. END(__longjmp)
  42. libc_hidden_def(__longjmp)