macro_rules! switch_stacks {
() => { ... };
}Expand description
An assembly block for switching stacks, which is the integral part of the actual context switching routine.
- The
rdiregister must contain a pointer to the previous task’s stack pointer. - The
rsiregister must contain the value of the next task’s stack pointer.