Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cacheflush(2) — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought



CACHEFLUSH(2)       RISC/os Reference Manual        CACHEFLUSH(2)



NAME
     cacheflush - flush contents of instruction and/or data cache

SYNOPSIS
   Headers
     For -systype sysv:

     #include <sys/cachectl.h>

     For -systype bsd43:

     #include <mips/cachectl.h>

   Declarations
     cacheflush(addr, nbytes, cache)
     char *addr;
     int nbytes, cache;

DESCRIPTION
     cacheflush flushes contents of indicated cache(s) for user
     addresses in the range addr to (addr+nbytes-1).  cache may
     be one of:

     ICACHE   Flush only the instruction cache

     DCACHE   Flush only the data cache

     BCACHE   Flush both instruction and data caches

RETURN VALUE
     cacheflush returns 0 when no errors are detected.  If errors
     are detected, cacheflush returns -1 with the error cause
     indicated in errno.

ERRORS
     [EINVAL] cache parameter is not one of ICACHE, DCACHE, or
              BCACHE.

     [EFAULT] Some or all of the address range addr to
              (addr+nbytes-1) is not accessable.

NOTE
     When these routines are used in a program which is compiled
     in -systype sysv, they are not resolved by libc.a.  See
     intro(3-SysV) for more information.










                         Printed 1/15/91                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026