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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [m68k/] [bits/] [setjmp.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
 
2
/* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
3
/* This file is released under the LGPL, any version you like */
4
 
5
#ifndef _SETJMP_H
6
# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
7
#endif
8
 
9
#ifndef _ASM
10
 
11
typedef struct
12
  {
13
    unsigned long __dregs[6]; /* save d2 - d7 */
14
    unsigned long __aregs[6]; /* save a2 - a7 */
15
        unsigned long __pc;       /* the return address */
16
 
17
#if defined __HAVE_68881__ || defined __HAVE_FPU__
18
    /* There are eight floating point registers which
19
       are saved in IEEE 96-bit extended format.  */
20
    char __fpregs[8 * (96 / 8)];
21
#endif
22
 
23
  } __jmp_buf[1];
24
 
25
#endif /* _ASM */
26
 
27
#define JB_REGS   0
28
#define JB_DREGS  0
29
#define JB_AREGS  24
30
#define JB_PC     48
31
#define JB_FPREGS 52
32
 
33
#if defined __HAVE_68881__ || defined __HAVE_FPU__
34
# define JB_SIZE 76
35
#else
36
# define JB_SIZE 52
37
#endif
38
 
39
 
40
/* Test if longjmp to JMPBUF would unwind the frame
41
   containing a local variable at ADDRESS.  */
42
#define _JMPBUF_UNWINDS(jmpbuf, address) \
43
  ((void *) (address) < (void *) (jmpbuf)->__aregs[5])

powered by: WebSVN 2.1.0

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