summaryrefslogtreecommitdiffstats
path: root/include/kexec-pe-zboot.h
blob: e2e0448a81f2b81ac18f041b421d40f428afde32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __KEXEC_PE_ZBOOT_H__
#define __KEXEC_PE_ZBOOT_H__

/* see drivers/firmware/efi/libstub/zboot-header.S */
struct linux_pe_zboot_header {
	uint32_t mz_magic;
	uint32_t image_type;
	uint32_t payload_offset;
	uint32_t payload_size;
	uint32_t reserved[2];
	uint32_t compress_type;
};

int pez_prepare(const char *crude_buf, off_t buf_sz, int *kernel_fd);
#endif