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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [microblaze/] [bits/] [setjmp.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/*
2
 * libc/sysdeps/linux/microblaze/bits/setjmp.h -- microblaze version of `jmp_buf' type
3
 *
4
 *  Copyright (C) 2003  John Williams <jwilliams@itee.uq.edu.au>
5
 *  Copyright (C) 2001  NEC Corporation
6
 *  Copyright (C) 2001  Miles Bader <miles@gnu.org>
7
 *
8
 * This file is subject to the terms and conditions of the GNU Lesser
9
 * General Public License.  See the file COPYING.LIB in the main
10
 * directory of this archive for more details.
11
 *
12
 * Written by Miles Bader <miles@gnu.org>
13
 */
14
 
15
#ifndef _SETJMP_H
16
# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
17
#endif
18
 
19
#ifndef _ASM
20
typedef struct
21
  {
22
    /* Stack pointer.  */
23
    void *__sp;
24
 
25
    /* Link pointer.  */
26
    void *__lp;
27
 
28
    /* Callee-saved registers r18-r30.  */
29
    int __regs[13];
30
  } __jmp_buf[1];
31
#endif
32
 
33
#define JB_SIZE         (4 * 15)
34
 
35
/* Test if longjmp to JMPBUF would unwind the frame
36
   containing a local variable at ADDRESS.  */
37
#define _JMPBUF_UNWINDS(jmpbuf, address) \
38
  ((__ptr_t) (address) < &(jmpbuf)[0].__sp)

powered by: WebSVN 2.1.0

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