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