Fixed hang with CPU detection

BP is now preserved in all kernel functions.