$NetBSD: patch-ab,v 1.2 2000/11/13 23:58:12 hubertf Exp $ --- arch/m68k/machine.h.orig Sat Sep 23 20:22:05 2000 +++ arch/m68k/machine.h @@ -44,7 +44,16 @@ */ #if defined(apollo) # define FLUSH_ICACHE(addr,size) cache_$clear() -#elif defined(NeXT) +#elif defined(__NetBSD__) +# define FLUSH_ICACHE(addr,size) do { \ + register void *addr_ asm("a1") = (addr); \ + register int size_ asm("d1") = (size); \ + register int cmd_ asm("d0") = 0x80000004; \ + asm volatile(" trap #12" \ + : "=a" (addr_), "=d" (size_), "=d" (cmd_) \ + : "0" (addr_), "1" (size_), "2" (cmd_) : "a0"); \ + } while (0) +#elif defined(NeXT) || defined(sun) # define FLUSH_ICACHE(addr,size) asm("trap #2"); #elif defined(hpux) # include