]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/kexec.c
h63xx: tsc2101 alsa sound support
[linux-2.6-omap-h63xx.git] / kernel / kexec.c
index 1197de8b2a949d1b8f8a8770d27b9b8e6a62cc3d..bf39d28e4c0e7b44313124d84681f012ca193713 100644 (file)
@@ -6,6 +6,7 @@
  * Version 2.  See the file COPYING for more details.
  */
 
+#include <linux/capability.h>
 #include <linux/mm.h>
 #include <linux/file.h>
 #include <linux/slab.h>
@@ -1057,7 +1058,9 @@ void crash_kexec(struct pt_regs *regs)
        if (!locked) {
                image = xchg(&kexec_crash_image, NULL);
                if (image) {
-                       machine_crash_shutdown(regs);
+                       struct pt_regs fixed_regs;
+                       crash_setup_regs(&fixed_regs, regs);
+                       machine_crash_shutdown(&fixed_regs);
                        machine_kexec(image);
                }
                xchg(&kexec_lock, 0);