- image = xchg(&kexec_crash_image, NULL);
- if (image) {
- machine_crash_shutdown(regs);
- machine_kexec(image);
+ if (kexec_crash_image) {
+ struct pt_regs fixed_regs;
+ crash_setup_regs(&fixed_regs, regs);
+ machine_crash_shutdown(&fixed_regs);
+ machine_kexec(kexec_crash_image);