2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7 #include <jmpbuf-offsets.h>
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)
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])
25 #ifdef __UCLIBC_HAS_THREADS_NATIVE__
26 #if defined(__arch64__)
27 #include "sparc64/jmpbuf-unwind.h"
29 #include "sparc32/jmpbuf-unwind.h"