Trait drone_cortexm::sv::Switch [−][src]
Extends Supervisor types with
switch_context and
switch_back methods.
Required methods
unsafe fn switch_context(data: *mut T, stack_ptr: *mut *const u8)[src]
Switches to the given process stack.
Safety
datamust be word-aligned.*stack_ptrmust be word-aligned.
unsafe fn switch_back(data: *mut *mut T)[src]
Switches to the previous stack.
Safety
- Must be called only from Process Stack.
Tmust match the previousswitch_context.*datamust be word-aligned.
Implementors
impl<Sv, T> Switch<T> for Sv where
Sv: SvCall<SwitchContextService>,
Sv: SvCall<SwitchBackService>, [src]
Sv: SvCall<SwitchContextService>,
Sv: SvCall<SwitchBackService>,