added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / ppc-all / include / jmpdefs.h
blob20b0eca84dab38c4c8cde16b2e7b22cd58eda7bb
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 <setjmp.h>
11 #ifdef __linux__
12 # if defined(__GLIBC__) && (__GLIBC__ >= 2)
13 # define SP(env) ((APTR)(env[0].__jmpbuf[JB_GPR1]))
14 # define FP(env) (((APTR *)(env[0].__jmpbuf[JB_GPR1]))[0])
15 # define PC(env) ((APTR)(env[0].__jmpbuf[JB_LR]))
16 # else
17 # define SP(env) ((APTR)(env[0].__sp))
18 # define FP(env) ((APTR)(env[0].__bp))
19 # define PC(env) ((APTR)(env[0].__pc))
20 # endif
21 #endif
22 /* The number of stack longs that have to be copied from the old stack */
23 #define NUM_LONGS 2
25 #endif /* !JMPDEFS_H */