[gforth] / gforth / Attic / cache.c  

gforth: gforth/Attic/cache.c

Diff for /gforth/Attic/cache.c between version 1.1 and 1.2

version 1.1, Tue Oct 4 17:50:00 1994 UTC version 1.2, Thu Oct 12 20:43:24 1995 UTC
Line 1 
Line 1 
 void *cacheflush(void * address, int size, int linewidth)  void cacheflush(void * address, int size, int linewidth)
 {  {
         int i;          int i;
   
         address=(void *)((int)address & (-linewidth));          address=(void *)((int)address & (-linewidth));
   
         for(i=4-linewidth; i<size; i+=linewidth)    for(i=1-linewidth; i<size; i+=linewidth)
                 asm("\      asm volatile("fdc (%0)\n\t"
                 fdc (%r28)\n\                   "sync\n\t"
                 sync\n\                   "fic,m %1(%0)\n\t"
                 fic,m %r24(%r28)\n\                   "sync" : : "r" (address), "r" (linewidth) : "memory" );
                 sync");  
   
         return address;  
 }  }


Generate output suitable for use with a patch program
Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help