From b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 27 Feb 2014 23:18:42 -0500 Subject: add nofpu subarchs to the sh arch, and properly detect compiler's fpu config --- src/setjmp/sh-nofpu/setjmp.s | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/setjmp/sh-nofpu/setjmp.s (limited to 'src/setjmp/sh-nofpu/setjmp.s') diff --git a/src/setjmp/sh-nofpu/setjmp.s b/src/setjmp/sh-nofpu/setjmp.s new file mode 100644 index 00000000..c6c7359a --- /dev/null +++ b/src/setjmp/sh-nofpu/setjmp.s @@ -0,0 +1,21 @@ +.global __setjmp +.global _setjmp +.global setjmp +.type __setjmp, @function +.type _setjmp, @function +.type setjmp, @function +__setjmp: +_setjmp: +setjmp: + add #36, r4 + sts.l pr, @-r4 + mov.l r15 @-r4 + mov.l r14, @-r4 + mov.l r13, @-r4 + mov.l r12, @-r4 + mov.l r11, @-r4 + mov.l r10, @-r4 + mov.l r9, @-r4 + mov.l r8, @-r4 + rts + mov #0, r0 -- cgit v1.2.1