|
PebbleOS v4.47.0-512-g5285d4236
|
#include <stddef.h>#include <stdint.h>#include <pbl/kernel/compiler.h>#include <pbl_arch_cache.h>Macros | |
| #define | PBL_DCACHE_LINE_SIZE ARCH_DCACHE_LINE_SIZE |
| Data cache line size in bytes, 1 without a data cache. | |
| #define | PBL_ICACHE_LINE_SIZE ARCH_ICACHE_LINE_SIZE |
| Instruction cache line size in bytes, 1 without an instruction cache. | |
| #define | PBL_DCACHE_ROUND_UP(size) (((size) + PBL_DCACHE_LINE_SIZE - 1U) & ~(PBL_DCACHE_LINE_SIZE - 1U)) |
size rounded up to whole data cache lines. | |
Functions | |
| static void | pbl_dcache_flush_range (const void *addr, size_t size) |
| Flush the data cache lines covering a range. | |
| static void | pbl_dcache_invalidate_range (void *addr, size_t size) |
| Invalidate the data cache lines covering a range. | |
| static void | pbl_dcache_flush_invalidate_range (void *addr, size_t size) |
| Flush, then invalidate the data cache lines covering a range. | |
| static void | pbl_icache_invalidate_range (const void *addr, size_t size) |
| Invalidate the instruction cache lines covering a range. | |