pub struct Stack<const BYTES: usize> { /* private fields */ }Available on crate feature
multicore and crate feature rt and non-armv6 only.Expand description
A statically-allocated stack for a secondary core.
8-byte aligned, since AAPCS requires the stack pointer to be 8-byte
aligned at public interfaces. On AArch32 launch carves the top
IRQ_STACK_SIZE bytes off for IRQ-mode use (mirroring how core 0’s
own stack is laid out in boot.s) and hands the rest to the core’s
main (SVC) mode; on AArch64 the whole stack is used. The size is
enforced to fit at compile time, not checked at runtime.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const BYTES: usize> Freeze for Stack<BYTES>
impl<const BYTES: usize> RefUnwindSafe for Stack<BYTES>
impl<const BYTES: usize> Send for Stack<BYTES>
impl<const BYTES: usize> Sync for Stack<BYTES>
impl<const BYTES: usize> Unpin for Stack<BYTES>
impl<const BYTES: usize> UnsafeUnpin for Stack<BYTES>
impl<const BYTES: usize> UnwindSafe for Stack<BYTES>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more