Expand description
CPU cache maintenance.
Structs§
- Cache
Range - A checked virtual byte range. Construction validates arithmetic, not mapping.
- Cache
Range Overflow - The requested cache byte range wraps the CPU address space.
Enums§
- Data
Cache Operation - Data-cache maintenance performed to the point of coherency.
Functions§
- clean_
dcache_ ⚠range_ to_ pou - Cleans the checked range to the point of unification and completes the writes.
Call
flush_icache_allbefore executing the modified instructions. - dcache_
line_ size_ from_ ctr - Reads the data cache line size from
CTR_EL0and returns it in bytes. - flush_
icache_ all - Invalidates instruction caches in the Inner Shareable domain. Modified bytes must first be cleaned to PoU; remote execution must cross a context-synchronization event (such as exception return) after publication.
- icache_
line_ size_ from_ ctr - Reads the instruction cache line size from
CTR_EL0and returns it in bytes. - maintain_
dcache_ ⚠to_ poc - Maintains every cache line intersecting a checked virtual byte range. Completion includes a system DSB and instruction synchronization.
- sync_
kernel_ text - Completes local translation and instruction synchronization for modified text.
The owner must first publish the modified bytes using
clean_dcache_range_to_pou, and coordinate any other CPUs executing this text.