Handle context switch in kext