Merge tag 'irq-urgent-2023-10-10-v2' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-starfive.git] / kernel / kexec.c
index 92d301f..107f355 100644 (file)
@@ -129,6 +129,11 @@ static int do_kexec_load(unsigned long entry, unsigned long nr_segments,
        if (flags & KEXEC_PRESERVE_CONTEXT)
                image->preserve_context = 1;
 
+#ifdef CONFIG_CRASH_HOTPLUG
+       if (flags & KEXEC_UPDATE_ELFCOREHDR)
+               image->update_elfcorehdr = 1;
+#endif
+
        ret = machine_kexec_prepare(image);
        if (ret)
                goto out;