| 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 |
|
| 22 |
.globl longjmp |
| 23 |
.type longjmp, %function |
| 24 |
longjmp: |
| 25 |
ldmia r0, {r3-r12,r14} |
| 26 |
.section .note.GNU-stack,"a" |