2 * (C) 2017 Theobroma Systems Design und Consulting GmbH
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm/assembler.h>
9 #include <linux/linkage.h>
11 .pushsection .text.setjmp, "ax"
14 * A subroutine must preserve the contents of the registers
15 * r4-r8, r10, r11 (v1-v5, v7 and v8) and SP (and r9 in PCS
16 * variants that designate r9 as v6).
19 stm a1, {v1-v8, ip, lr}
25 .pushsection .text.longjmp, "ax"
27 ldm a1, {v1-v8, ip, lr}
30 /* If we were passed a return value of zero, return one instead */