From b8fcdddcbb192fc367ff04bbd753b9deb69b09f3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 28 May 2016 18:12:58 +0200 Subject: 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. --- libc/sysdeps/linux/nios2/bits/setjmp.h | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) (limited to 'libc/sysdeps/linux/nios2/bits/setjmp.h') diff --git a/libc/sysdeps/linux/nios2/bits/setjmp.h b/libc/sysdeps/linux/nios2/bits/setjmp.h index bc6f30848..2fbb39562 100644 --- a/libc/sysdeps/linux/nios2/bits/setjmp.h +++ b/libc/sysdeps/linux/nios2/bits/setjmp.h @@ -1,5 +1,5 @@ -/* Define the machine-dependent type `jmp_buf'. Nios2 version. - Copyright (C) 1992,93,95,97,2000 Free Software Foundation, Inc. +/* Define the machine-dependent type `jmp_buf'. Nios II version. + Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -13,7 +13,7 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see + License along with the GNU C Library. If not, see . */ #ifndef _BITS_SETJMP_H @@ -23,27 +23,9 @@ # error "Never include directly; use instead." #endif -typedef struct -{ - /* Callee-saved registers r16 through r23. */ - unsigned long __regs[8]; +/* Saves r16-r22 (callee-saved, including GOT pointer), fp (frame pointer), + ra (return address), and sp (stack pointer). */ - /* Program counter. */ - unsigned long __pc; - - /* Stack pointer. */ - unsigned long __sp; - - /* The frame pointer. */ - unsigned long __fp; - - /* The global pointer. */ - unsigned long __gp; - - /* floating point regs, if any */ -#ifdef __UCLIBC_HAS_FPU__ - unsigned long __fpregs[64]; -#endif -} __jmp_buf[1]; +typedef int __jmp_buf[10]; #endif /* bits/setjmp.h */ -- cgit v1.2.3