pub fn stack() -> Range<*mut u32>Expand description
The Range currently in use for the current hart’s stack.
Note: the stack is defined in reverse, as it runs from ‘start’ to ‘end’ downwards.
Hence this range is technically empty because start >= end.
Important: end represents one past the last value in the stack belonging to current hart,
so do not attempt to write to it, as you’d overwrite the start of stack of another hart.
If you want to use this range to do range-like things, use stack_rev instead.