From c36d3e8b2e9930b90b024429fa9c7a863a1a8a72 Mon Sep 17 00:00:00 2001 From: Eric DeVolder Date: Wed, 27 Sep 2023 14:11:31 -0400 Subject: kexec: define KEXEC_UPDATE_ELFCOREHDR The Linux kernel defines this flag to indicate that the kexec_load()'ed image is setup so that the kernel may directly modify the elfcorehdr (and not cause the purgatory digest checksum to fail) in response to CPU or memory hot un/plug and/or on/offline events. Define this flag to match/mirror the kernel flag. Signed-off-by: Eric DeVolder Signed-off-by: Simon Horman --- kexec/kexec-syscall.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h index 1e2d12f8..2559bffb 100644 --- a/kexec/kexec-syscall.h +++ b/kexec/kexec-syscall.h @@ -112,6 +112,7 @@ static inline long kexec_file_load(int kernel_fd, int initrd_fd, #define KEXEC_ON_CRASH 0x00000001 #define KEXEC_PRESERVE_CONTEXT 0x00000002 +#define KEXEC_UPDATE_ELFCOREHDR 0x00000004 #define KEXEC_ARCH_MASK 0xffff0000 /* Flags for kexec file based system call */ -- cgit 1.2.3-korg