/[gcl]/gcl/h/386-linux.h
ViewVC logotype

Diff of /gcl/h/386-linux.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by camm, Sun Apr 4 19:30:38 2004 UTC revision 1.14 by camm, Tue Jun 14 17:27:38 2005 UTC
# Line 1  Line 1 
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
# Line 27  Line 14 
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")

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26