Rewrote the context switching code so it can be used in the SVC handler