Implemented a debugging code of context switch to BSP.