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

Diff of /gcl/h/linux.h

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

revision 1.13 by camm, Fri Jun 10 15:30:42 2005 UTC revision 1.14 by camm, Tue Jun 14 17:27:38 2005 UTC
# Line 31  Line 31 
31        } while(0)        } while(0)
32    
33    
34  #ifdef IN_GBC  #define GET_FAULT_ADDR(sig,code,sv,a) ((siginfo_t *)code)->si_addr
35  /* Based upon sun4.h */  #define MPROTECT_ACTION_FLAGS SA_RESTART | SA_ONSTACK | SA_SIGINFO
 #define MPROTECT_ACTION_FLAGS SA_RESTART  
36  #define INSTALL_MPROTECT_HANDLER \  #define INSTALL_MPROTECT_HANDLER \
37  do {static struct sigaction action; \  do {static struct sigaction action; \
38        action.sa_handler = (void *)memprotect_handler; \        action.sa_handler = (void *)memprotect_handler; \
# Line 45  do {static struct sigaction action; \ Line 44  do {static struct sigaction action; \
44        sigaction(SIGSEGV,&action,0); \        sigaction(SIGSEGV,&action,0); \
45        sigaction(SIGBUS,&action,0);} while (0)        sigaction(SIGBUS,&action,0);} while (0)
46    
 #endif  
   
47  #undef SETUP_SIG_STACK  #undef SETUP_SIG_STACK
48    
49  #define ELF_TEXT_BASE  DBEGIN  #define ELF_TEXT_BASE  DBEGIN

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