1 |
#include "linux.h" |
#include "linux.h" |
2 |
|
|
3 |
#ifdef IN_GBC |
#ifdef IN_GBC |
|
/* #undef MPROTECT_ACTION_FLAGS */ |
|
|
/* #define MPROTECT_ACTION_FLAGS SA_RESTART|SA_SIGINFO */ |
|
|
/* #define GET_FAULT_ADDR(sig,code,sv,a) \ */ |
|
|
/* ((siginfo_t *)code)->si_addr */ |
|
|
/* the following two files have changed back |
|
|
and forth in recent versions of linux... |
|
|
Include both if they both exist, otherwise |
|
|
include whatever one exists... |
|
|
basically one wants the |
|
|
struct sigcontext_struct { ... } ; |
|
|
so as to get the fault address. |
|
|
*/ |
|
|
|
|
4 |
#if !defined(SIGNAL_H_HAS_SIGCONTEXT) && !defined(HAVE_SIGCONTEXT) |
#if !defined(SIGNAL_H_HAS_SIGCONTEXT) && !defined(HAVE_SIGCONTEXT) |
5 |
#error Need sigcontext on 386 linux |
#error Need sigcontext on 386 linux |
6 |
#else |
#else |
14 |
#endif |
#endif |
15 |
#endif |
#endif |
16 |
#endif |
#endif |
|
|
|
|
#define GET_FAULT_ADDR(sig,code,sv,a) \ |
|
|
((void *)(((struct sigcontext *)(&code))->cr2)) |
|
17 |
#endif |
#endif |
18 |
|
|
|
/*#define NULL_OR_ON_C_STACK(x) ((x)==0 || ((unsigned int)x) > (unsigned int)(pagetochar(MAXPAGE+1)))*/ |
|
|
|
|
19 |
#define ADDITIONAL_FEATURES \ |
#define ADDITIONAL_FEATURES \ |
20 |
ADD_FEATURE("BSD386"); \ |
ADD_FEATURE("BSD386"); \ |
21 |
ADD_FEATURE("MC68020") |
ADD_FEATURE("MC68020") |