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