revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-all / include / jmpdefs.h
blob8bfdf614856ecf52115a90f09c4ab93add88b5ec
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef JMPDEFS_H
7 #define JMPDEFS_H
9 #include <aros/system.h>
10 #include <setjmp.h>
12 #if defined(__GLIBC__) && (__GLIBC__ >= 2)
13 # define SP(env) ((APTR)(env[0].__jmpbuf[0].__sp))
14 # define FP(env) ((APTR)(env[0].__jmpbuf[0].__fp))
15 # define PC(env) ((APTR)(env[0].__jmpbuf[0].__pc))
16 #else
17 # define SP(env) ((APTR)(env[0].__sp))
18 # define FP(env) ((APTR)(env[0].__fp))
19 # define PC(env) ((APTR)(env[0].__pc))
20 #endif
22 /* The number of stack longs that have to be copied from the old stack */
23 #if UseRegisterArgs
24 # define NUM_LONGS 6
25 #else
26 # define NUM_LONGS 4
27 #endif
29 #endif /* !JMPDEFS_H */