| Rev | Author | # | Line |
|---|---|---|---|
| 1 | perry | 1 | CACHEFLUSH |
| 2 | !!!CACHEFLUSH | ||
| 3 | ---- | ||
| 4 | !!NAME | ||
| 5 | cacheflush - flush contents of instruction and/or data cache | ||
| 6 | !!SYNOPSIS | ||
| 7 | |||
| 2 | PerryLorier | 8 | __#include <asm/cachectl.h>__ |
| 3 | PerryLorier | 9 | __int cacheflush(char *__''addr''__, int__ ''nbytes''__, int__ ''cache''__);__ |
| 1 | perry | 10 | !!DESCRIPTION |
| 11 | |||
| 2 | PerryLorier | 12 | __cacheflush__ flushes contents of indicated cache(s) for user addresses in the range addr to (addr+nbytes-1). Cache may be one of: |
| 1 | perry | 13 | |
| 4 | PerryLorier | 14 | ;__ICACHE__: Flush the instruction cache. |
| 15 | ;__DCACHE__: Write back to memory and invalidate the affected valid cache lines. | ||
| 16 | ;__BCACHE__: Same as __(ICACHE|DCACHE).__ | ||
| 2 | PerryLorier | 17 | |
| 1 | perry | 18 | !!RETURN VALUE |
| 19 | |||
| 2 | PerryLorier | 20 | __cacheflush__ returns 0 on success or -1 on error. If errors are detected, errno will indicate the error. |
| 1 | perry | 21 | !!ERRORS |
| 22 | |||
| 2 | PerryLorier | 23 | ;[EINVAL]: cache parameter is not one of ICACHE, DCACHE, or BCACHE. |
| 24 | ;[EFAULT]: Some or all of the address range addr to (addr+nbytes-1) is not accessible. | ||
| 1 | perry | 25 | |
| 26 | !!BUGS | ||
| 2 | PerryLorier | 27 | The current implementation ignores the addr and nbytes parameters. Therefore always the whole cache is flushed. |
| 1 | perry | 28 | |
| 29 | !!NOTE | ||
| 2 | PerryLorier | 30 | This system call is only available on MIPS based systems. It should not be used in programs intended to be portable. |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 9 times)