File:  [Research Unix] / researchv10no / cmd / sml / src / runtime / cache.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

/* Copyright 1989 by AT&T Bell Laboratories */

#include <syscall.h>
#include <sys/sysmips.h>
#include <machine/cachectl.h>

/* Flush the instruction cache, starting at addr for size bytes */
FlushInstructionCache(addr,size)
int addr, size;
{
  syscall(SYS_sysmips, MIPS_CACHEFLUSH, addr, size, ICACHE, 0);
}

cachectl(addr,nbytes,op) 
    char *addr;
    int nbytes, op;
{
    return syscall(SYS_sysmips,MIPS_CACHECTL,addr,nbytes,op,0);
}

cacheflush(addr, nbytes, cache)
     char *addr;
     int nbytes, cache;
{
     return syscall(SYS_sysmips,MIPS_CACHEFLUSH,addr,nbytes,cache,0);
}

unix.superglobalmegacorp.com

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