__longjmp.S 612 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (C) 2004-2007 Atmel Corporation
  3. *
  4. * This file is subject to the terms and conditions of the GNU Lesser General
  5. * Public License. See the file "COPYING.LIB" in the main directory of this
  6. * archive for more details.
  7. */
  8. .global __longjmp
  9. .type __longjmp,"function"
  10. .align 1
  11. __longjmp:
  12. ldm r12++, r0-r8,sp,lr
  13. mustr r8 /* restore status register (lower half) */
  14. cp r11, 0 /* can't return zero */
  15. frs
  16. moveq r11, 1
  17. retal r11
  18. .size __longjmp, . - __longjmp
  19. libc_hidden_def(__longjmp)