diff options
Diffstat (limited to 'kexec/arch/loongarch/kexec-loongarch.h')
-rw-r--r-- | kexec/arch/loongarch/kexec-loongarch.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kexec/arch/loongarch/kexec-loongarch.h b/kexec/arch/loongarch/kexec-loongarch.h index cb9b79a..5120a26 100644 --- a/kexec/arch/loongarch/kexec-loongarch.h +++ b/kexec/arch/loongarch/kexec-loongarch.h @@ -3,6 +3,8 @@ #include <sys/types.h> +#include "image-header.h" + #define BOOT_BLOCK_VERSION 17 #define BOOT_BLOCK_LAST_COMP_VERSION 16 @@ -21,6 +23,13 @@ int elf_loongarch_load(int argc, char **argv, const char *buf, off_t len, struct kexec_info *info); void elf_loongarch_usage(void); +int pei_loongarch_probe(const char *buf, off_t len); +int pei_loongarch_load(int argc, char **argv, const char *buf, off_t len, + struct kexec_info *info); +void pei_loongarch_usage(void); + +int loongarch_process_image_header(const struct loongarch_image_header *h); + unsigned long loongarch_locate_kernel_segment(struct kexec_info *info); int loongarch_load_other_segments(struct kexec_info *info, unsigned long hole_min); |