pub struct Quiesced<'a> { /* private fields */ }Expand description
Proof that interrupts are masked and no DMA channel is running, for as long as the borrow of
with_dma_quiesced’s closure lasts. It cannot be built any other way, and it owns the
right to change the cache.
Implementations§
Source§impl Quiesced<'_>
impl Quiesced<'_>
Sourcepub fn report(&self) -> QuiesceReport
pub fn report(&self) -> QuiesceReport
What the gate saw on the way in.
Sourcepub fn flush_icache(&mut self)
pub fn flush_icache(&mut self)
Invalidate every line of the instruction cache.
Call it after writing instructions to RAM (an exception vector, patched or loaded code) so the CPU fetches the new words.
Sourcepub fn flush_icache_range(&mut self, start: u32, end: u32)
pub fn flush_icache_range(&mut self, start: u32, end: u32)
Invalidate the instruction-cache lines that hold the bytes [start, end).
For a caller that rewrote a few words of code (a patched call site): the other lines, and the working set they hold, stay valid. A range of 4 KiB or more is the whole cache.