OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [include/] [machine/] [setjmp.h] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 36... Line 36...
 * All else recovered by under/over(flow) handling.
 * All else recovered by under/over(flow) handling.
 */
 */
#define _JBLEN  9
#define _JBLEN  9
#endif
#endif
 
 
#ifdef __i386__
#if defined(__CYGWIN__) && !defined (_JBLEN)
 
#define _JBLEN (13 * 4)
 
#elif defined (__i386__)
#ifdef __unix__
#ifdef __unix__
# define _JBLEN 36
# define _JBLEN 36
#elif defined(_WIN32)
 
#define _JBLEN (13 * 4)
 
#else
#else
#include "setjmp-dj.h"
#include "setjmp-dj.h"
#endif
#endif
#endif
#endif
 
 
Line 105... Line 105...
   Note space exists for the FP registers, but they are not
   Note space exists for the FP registers, but they are not
   saved.  */
   saved.  */
#define _JBLEN 28
#define _JBLEN 28
#endif
#endif
 
 
#if defined(mn10300) || defined(mn10200)
#if defined(__mn10300__) || defined(__mn10200__)
/* A guess */
/* A guess */
#define _JBLEN 10
#define _JBLEN 10
#endif
#endif
 
 
#ifdef __v850
#ifdef __v850
/* I think our setjmp is saving 15 regs at the moment.  Gives us one word
/* I think our setjmp is saving 15 regs at the moment.  Gives us one word
   slop if we need to expand.  */
   slop if we need to expand.  */
#define _JBLEN 16
#define _JBLEN 16
#endif
#endif
 
 
 
#ifdef __TIC80__
 
#define _JBLEN 13
 
#endif
 
 
#ifdef __D10V__
#ifdef __D10V__
#define _JBLEN 8
#define _JBLEN 8
#endif
#endif
 
 
/* start-sanitize-d30v */
 
#ifdef __D30V__
#ifdef __D30V__
#define _JBLEN (64 /* GPR */ + (2*2) /* ACs */ + 18 /* CRs */)
#define _JBLEN ((64 /* GPR */ + (2*2) /* ACs */ + 18 /* CRs */) / 2)
 
#define _JBTYPE double
 
#endif
 
 
 
 
 
#ifdef __fr30__
 
#define _JBLEN 10
 
#endif
 
 
 
#ifdef __mcore__
 
#define _JBLEN 16
#endif
#endif
/* end-sanitize-d30v */
 
 
 
#ifdef _JBLEN
#ifdef _JBLEN
#ifdef _JBTYPE
#ifdef _JBTYPE
typedef _JBTYPE jmp_buf[_JBLEN];
typedef _JBTYPE jmp_buf[_JBLEN];
#else
#else
typedef int jmp_buf[_JBLEN];
typedef int jmp_buf[_JBLEN];
#endif
#endif
 
 
#ifdef __CYGWIN32__
#if defined(__CYGWIN32__) || defined(__rtems__)
#include <signal.h>
#include <signal.h>
 
 
/* POSIX sigsetjmp/siglongjmp macros */
/* POSIX sigsetjmp/siglongjmp macros */
typedef int sigjmp_buf[_JBLEN+2];
typedef int sigjmp_buf[_JBLEN+2];
 
 
Line 151... Line 162...
 
 
#define siglongjmp(env, val) (((env[_SAVEMASK])?\
#define siglongjmp(env, val) (((env[_SAVEMASK])?\
               sigprocmask (SIG_SETMASK, (sigset_t *) &env[_SIGMASK], 0):0),\
               sigprocmask (SIG_SETMASK, (sigset_t *) &env[_SIGMASK], 0):0),\
               longjmp (env, val))
               longjmp (env, val))
 
 
#endif /* __CYGWIN32__*/
#endif /* __CYGWIN32__ or __rtems__ */
#endif
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.