Diff for /gforth/Attic/m68k.h between versions 1.6 and 1.8

version 1.6, 1996/07/26 15:28:29 version 1.8, 1997/03/04 17:49:51
Line 21 Line 21
   
 #include "32bit.h"  #include "32bit.h"
   
 #define FLUSH_ICACHE(addr,size)    cache_$clear()  
 /* Clearing the whole cache is a bit drastic, but this is the only  /* Clearing the whole cache is a bit drastic, but this is the only
    cache control available on the apollo.   *    cache control available on the apollo and NeXT
 */   */
   #if defined(apollo)
   #  define FLUSH_ICACHE(addr,size)    cache_$clear()
   #elif defined(NeXT)
   #  define FLUSH_ICACHE(addr,size)     asm("trap #2");
   #elif defined(hpux)
   #  include <sys/cache.h>
   #  define FLUSH_ICACHE(addr,size) cachectl(CC_IPURGE,(addr),(size))
   #else
   #  warning no FLUSH_ICACHE defined. If your machine has an I-cache (68020+),
   #  warning direct threading and CODE words will not work.
   #endif
   
 #ifdef DIRECT_THREADED  #ifdef DIRECT_THREADED
 #warning untested  #warning untested
Line 44 Line 54
    starts. */     starts. */
 #define DOES_CODE(cfa) \  #define DOES_CODE(cfa) \
      ({ short *_cfa=(short *)(cfa); \       ({ short *_cfa=(short *)(cfa); \
         short *_ca;          short *_ca; \
         ((_cfa[0] == 0x4ef9 \          ((_cfa[0] == 0x4ef9 \
           && (_ca=CODE_ADDRESS(cfa), _ca[0] == 0x4ef9) \            && (_ca=CODE_ADDRESS(cfa), _ca[0] == 0x4ef9) \
           && *(long *)(_cfa+1) == &&docol) \            && *(long *)(_cfa+1) == &&docol) \
Line 57 Line 67
 /* this stores a call dodoes at addr */  /* this stores a call dodoes at addr */
 #define MAKE_DOES_HANDLER(addr) MAKE_CF(addr,symbols[DODOES])  #define MAKE_DOES_HANDLER(addr) MAKE_CF(addr,symbols[DODOES])
   
 #define DOES_HANDLER_SIZE       8  
   
 #define MAKE_DOES_CF(addr,doesp)   MAKE_CF(addr,((int)(doesp)-8))  #define MAKE_DOES_CF(addr,doesp)   MAKE_CF(addr,((int)(doesp)-8))
 #endif  #endif
   

Removed from v.1.6  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>