setjmp.S 794 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
  3. * This program and the accompanying materials are licensed and made
  4. * available under the terms and conditions of the BSD License which
  5. * accompanies this distribution. The full text of the license may
  6. * be found at http://opensource.org/licenses/bsd-license.php.
  7. *
  8. * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS"
  9. * BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER
  10. * EXPRESS OR IMPLIED.
  11. */
  12. .text
  13. .arm
  14. .globl setjmp
  15. .type setjmp, %function
  16. setjmp:
  17. mov r3, r13
  18. stmia r0, {r3-r12,r14}
  19. eor r0, r0, r0
  20. bx lr
  21. .globl longjmp
  22. .type longjmp, %function
  23. longjmp:
  24. ldmia r0, {r3-r12,r14}
  25. #if defined(__ELF__) && defined(__linux__)
  26. .section .note.GNU-stack,"",%progbits
  27. #endif