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