setjmp.S 706 B

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