#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <syscalls/cache.h>
Go to the source code of this file.
◆ CPU
◆ K_CACHE_INVD
#define K_CACHE_INVD BIT(1) |
◆ K_CACHE_WB
#define K_CACHE_WB BIT(0) |
Common operations for the caches
WB means write-back and intends to transfer dirty cache lines to memory in a copy-back cache policy. May be a no-op in write-back cache policy.
INVD means invalidate and will mark cache lines as not valid. A future access to the associated address is guaranteed to generate a memory fetch.
◆ K_CACHE_WB_INVD
◆ sys_cache_data_all()
int sys_cache_data_all |
( |
int |
op | ) |
|
◆ sys_cache_data_line_size_get()
static size_t sys_cache_data_line_size_get |
( |
void |
| ) |
|
|
inlinestatic |
Get the d-cache line size.
The API is provided to get the d-cache line size.
- Returns
- size of the d-cache line or 0 if the d-cache is not enabled.
◆ sys_cache_data_range()
int sys_cache_data_range |
( |
void * |
addr, |
|
|
size_t |
size, |
|
|
int |
op |
|
) |
| |
◆ sys_cache_instr_all()
int sys_cache_instr_all |
( |
int |
op | ) |
|
◆ sys_cache_instr_line_size_get()
static size_t sys_cache_instr_line_size_get |
( |
void |
| ) |
|
|
inlinestatic |
◆ sys_cache_instr_range()
int sys_cache_instr_range |
( |
void * |
addr, |
|
|
size_t |
size, |
|
|
int |
op |
|
) |
| |