Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifief kexec_load syscall to support running EFI application. #697

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions include/linux/kexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ struct kimage {
/* Information for loading purgatory */
struct purgatory_info purgatory_info;
#endif

/* Used for KEXEC_RUN_PE */
void *raw_image;
void *raw_image_start;
unsigned long raw_image_mem_base;
};

/* kexec interface functions */
Expand All @@ -294,9 +299,9 @@ extern int kexec_load_disabled;

/* List of defined/legal kexec flags */
#ifndef CONFIG_KEXEC_JUMP
#define KEXEC_FLAGS KEXEC_ON_CRASH
#define KEXEC_FLAGS (KEXEC_ON_CRASH | KEXEC_RUN_PE)
#else
#define KEXEC_FLAGS (KEXEC_ON_CRASH | KEXEC_PRESERVE_CONTEXT)
#define KEXEC_FLAGS (KEXEC_ON_CRASH | KEXEC_PRESERVE_CONTEXT | KEXEC_RUN_PE)
#endif

/* List of defined/legal kexec file flags */
Expand Down
1 change: 1 addition & 0 deletions include/uapi/linux/kexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/* kexec flags for different usage scenarios */
#define KEXEC_ON_CRASH 0x00000001
#define KEXEC_PRESERVE_CONTEXT 0x00000002
#define KEXEC_RUN_PE 0x00000004
#define KEXEC_ARCH_MASK 0xffff0000

/*
Expand Down
Loading