Skip to main content

select_privileged_stack

Function select_privileged_stack 

Source
pub unsafe fn select_privileged_stack()
Expand description

Selects the current exception level’s dedicated stack and clears SP_EL0.

§Safety

The current EL stack must already be valid; no live owner may rely on SP_EL0.