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

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

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

revision 1.5 by camm, Tue Jun 14 14:29:09 2005 UTC revision 1.6 by camm, Tue Jun 14 17:27:38 2005 UTC
# Line 1  Line 1 
1  #include "linux.h"  #include "linux.h"
2    
 /*  #ifdef IN_GBC */  
 /*  #define GET_FAULT_ADDR(sig,code,sv,a) \ */  
 /*      ((void *)(*((char ***)(&code)))[17]) */  
 /*  #endif */  
   
 /*#define NULL_OR_ON_C_STACK(x) ((x)==0 || ((unsigned int)x) > (unsigned int)(pagetochar(MAXPAGE+1)))*/  
   
 /*  #define ADDITIONAL_FEATURES \ */  
 /*                   ADD_FEATURE("BSD386"); \ */  
 /*                           ADD_FEATURE("MC68020") */  
   
   
 /*  #define     I386 */  
 /*  #define SGC */  
   
 /*  #define CLEAR_CACHE do {void *v=memory->cfd.cfd_start,*ve=v+memory->cfd.cfd_size; for (;v<ve;v+=32)   asm __volatile__ ("dcbst 0,%0\n\tsync\n\ticbi 0,%0\n\tsync\n\tisync": : "r" (v) : "memory");} while(0) */  
   
3  #define MUST_COPY_VA_LIST  #define MUST_COPY_VA_LIST
 /* #define NULL_OR_ON_C_STACK(x) ((x)==0 || ((((unsigned long)x) > 0x100000000) && ((unsigned long)x) < 0x120000000)) */  
 #define NULL_OR_ON_C_STACK(x) (((unsigned long)x) < DBEGIN || ((unsigned long)x) > (unsigned long)(pagetochar(MAXPAGE)))  
4    
 #undef MPROTECT_ACTION_FLAGS  
 #define MPROTECT_ACTION_FLAGS SA_RESTART|SA_SIGINFO  
 #ifdef IN_GBC  
5  #include <ucontext.h>  #include <ucontext.h>
6    #undef GET_FAULT_ADDR
7  #define GET_FAULT_ADDR(sig,code,scp,addr) \  #define GET_FAULT_ADDR(sig,code,scp,addr) \
8    (char *)((struct ucontext *)scp )->uc_mcontext.sc_traparg_a0    (char *)((struct ucontext *)scp )->uc_mcontext.sc_traparg_a0
9  #endif  
10  #define SGC  #define SGC
11  #include <asm/system.h>  #include <asm/system.h>
12  #define CLEAR_CACHE imb()  #define CLEAR_CACHE imb()

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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