[RFC] Cache control from user land (patch)

Miod Vallat miod at online.fr
Tue Jan 13 19:22:23 UTC 2015


> Hi all:
> 
> Below is a link to a patch that provides a sysarch() so that cache lines may
> be invalidated from userspace (via the sysarch() system call).   For
> convenience mips_cacheflush() is provided in the machine/cachectl.h header
> file:
> 
>    int mips_cacheflush(void *addr, size_t nbytes, int whichcache);

Why not provide an IRIX-compatible cacheflush() and _flush_cache()
aliases? Many 3rd-party software expects them if defined(__mips__).

Miod


More information about the freebsd-mips mailing list