Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

Quiesced

Struct Quiesced 

Source
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<'_>

Source

pub fn report(&self) -> QuiesceReport

What the gate saw on the way in.

Source

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.

Source

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.

Auto Trait Implementations§

§

impl<'a> Freeze for Quiesced<'a>

§

impl<'a> RefUnwindSafe for Quiesced<'a>

§

impl<'a> !Send for Quiesced<'a>

§

impl<'a> !Sync for Quiesced<'a>

§

impl<'a> Unpin for Quiesced<'a>

§

impl<'a> UnsafeUnpin for Quiesced<'a>

§

impl<'a> !UnwindSafe for Quiesced<'a>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.