]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: 8030/1: ARM : kdump : add arch_crash_save_vmcoreinfo
authorLiu Hua <sdu.liu@huawei.com>
Fri, 18 Apr 2014 06:45:36 +0000 (07:45 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 15 May 2014 07:54:45 +0000 (09:54 +0200)
commit 56b700fd6f1e49149880fb1b6ffee0dca5be45fb upstream.

For vmcore generated by LPAE enabled kernel, user space
utility such as crash needs additional infomation to
parse.

So this patch add arch_crash_save_vmcoreinfo as what PAE enabled
i386 linux does.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Liu Hua <sdu.liu@huawei.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/kernel/machine_kexec.c

index 57221e349a7ce0eec03445cd56de2845e5d23358..faa3d4c41ecedf54c1d6b417c7f050f16f283a45 100644 (file)
@@ -181,3 +181,10 @@ void machine_kexec(struct kimage *image)
 
        soft_restart(reboot_code_buffer_phys);
 }
+
+void arch_crash_save_vmcoreinfo(void)
+{
+#ifdef CONFIG_ARM_LPAE
+       VMCOREINFO_CONFIG(ARM_LPAE);
+#endif
+}