summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/bsd-setjmp.S
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-05-28 18:12:58 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-04 00:03:07 +0100
commitb8fcdddcbb192fc367ff04bbd753b9deb69b09f3 (patch)
tree8febdb9d4e3d090e9273c29df9ff06116196c8e4 /libc/sysdeps/linux/nios2/bsd-setjmp.S
parent191739597c6d380692885cfdd8dd8aa4f31f029d (diff)
nios2: sync support with glibc
Only static linking is supported for now. More debugging and analyzing for ld.so, TLS and NPTL is required. But at least you can bootup a static root fileystem in Qemu.
Diffstat (limited to 'libc/sysdeps/linux/nios2/bsd-setjmp.S')
-rw-r--r--libc/sysdeps/linux/nios2/bsd-setjmp.S51
1 files changed, 0 insertions, 51 deletions
diff --git a/libc/sysdeps/linux/nios2/bsd-setjmp.S b/libc/sysdeps/linux/nios2/bsd-setjmp.S
deleted file mode 100644
index f533754dc..000000000
--- a/libc/sysdeps/linux/nios2/bsd-setjmp.S
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * libc/sysdeps/linux/nios2/bsd-setjmp.S
- *
- * Copyright (C) 2004,05,06 Microtronix Datacom Ltd
- *
- * This file is subject to the terms and conditions of the GNU Lesser
- * General Public License. See the file COPYING.LIB in the main
- * directory of this archive for more details.
- *
- * Written by Wentao Xu <wentao@microtronix.com>
- *
- */
-
-
-#include <features.h>
-#include <jmpbuf-offsets.h>
-
- .globl setjmp
- .type setjmp,@function
- .balign 4
-
-setjmp:
- stw r16, (JB_REGS+ 0)(r4)
- stw r17, (JB_REGS+ 4)(r4)
- stw r18, (JB_REGS+ 8)(r4)
- stw r19, (JB_REGS+12)(r4)
- stw r20, (JB_REGS+16)(r4)
- stw r21, (JB_REGS+20)(r4)
- stw r22, (JB_REGS+24)(r4)
- stw r23, (JB_REGS+28)(r4)
-
- stw ra, JB_PC(r4)
- stw sp, JB_SP(r4)
- stw fp, JB_FP(r4)
- stw gp, JB_GP(r4)
-
-#ifdef __UCLIBC_HAS_FPU__
- SAVE_FPU r4 JB_FPREGS
-#endif
-
- movui r5, 1
-#ifdef __PIC__
- /* just pray 16 bit offset is enough */
- br __sigjmp_save
-#else
- movhi r8, %hi(__sigjmp_save)
- ori r8, r8, %lo(__sigjmp_save)
- jmp r8
-#endif
-
-