$NetBSD: patch-ab,v 1.1 2000/04/11 06:54:46 itohy Exp $ --- arch/m68k/machine.h.orig Sat Dec 19 19:22:27 1998 +++ arch/m68k/machine.h Sun Apr 9 23:53:32 2000 @@ -42,7 +42,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