hardware dependent optimized Assembly code
switch_to
macro do (the most hardware dependent part)
- Switch from the kernel stack of prev to the kernel stack of next
- Switch from the hardware context of prev to the hardware context of next.