Implementing context switch to BSP.