Annotation of researchv10no/cmd/sml/src/runtime/cache.c, revision 1.1.1.1

1.1       root        1: /* Copyright 1989 by AT&T Bell Laboratories */
                      2: 
                      3: #include <syscall.h>
                      4: #include <sys/sysmips.h>
                      5: #include <machine/cachectl.h>
                      6: 
                      7: /* Flush the instruction cache, starting at addr for size bytes */
                      8: FlushInstructionCache(addr,size)
                      9: int addr, size;
                     10: {
                     11:   syscall(SYS_sysmips, MIPS_CACHEFLUSH, addr, size, ICACHE, 0);
                     12: }
                     13: 
                     14: cachectl(addr,nbytes,op) 
                     15:     char *addr;
                     16:     int nbytes, op;
                     17: {
                     18:     return syscall(SYS_sysmips,MIPS_CACHECTL,addr,nbytes,op,0);
                     19: }
                     20: 
                     21: cacheflush(addr, nbytes, cache)
                     22:      char *addr;
                     23:      int nbytes, cache;
                     24: {
                     25:      return syscall(SYS_sysmips,MIPS_CACHEFLUSH,addr,nbytes,cache,0);
                     26: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.