Modify to switch context without TSS.