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