]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/sparc/jmpbuf-unwind.h
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / sparc / jmpbuf-unwind.h
1 /*
2  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
3  *
4  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5  */
6 #include <setjmp.h>
7 #include <jmpbuf-offsets.h>
8
9 #if __WORDSIZE == 64
10
11 /* Test if longjmp to JMPBUF would unwind the frame
12    containing a local variable at ADDRESS.  */
13 #define _JMPBUF_UNWINDS(jmpbuf, address) \
14   ((unsigned long int) (address) < (jmpbuf)->uc_mcontext.mc_fp)
15
16 #else
17
18 /* Test if longjmp to JMPBUF would unwind the frame
19    containing a local variable at ADDRESS.  */
20 #define _JMPBUF_UNWINDS(jmpbuf, address) \
21   ((int) (address) < (jmpbuf)[JB_SP])
22
23 #endif
24
25 #ifdef __UCLIBC_HAS_THREADS_NATIVE__
26 #if defined(__arch64__)
27 #include "sparc64/jmpbuf-unwind.h"
28 #else
29 #include "sparc32/jmpbuf-unwind.h"
30 #endif
31 #endif