save all kernel context