summaryrefslogtreecommitdiff
path: root/kexec/arch/mips/kexec-mips.h
blob: 6d062fcccba5c3c795c8bc4079e08bb3a10398dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef KEXEC_MIPS_H
#define KEXEC_MIPS_H

#define MAX_MEMORY_RANGES  64
#define MAX_LINE          160

#define CORE_TYPE_ELF32 1
#define CORE_TYPE_ELF64 2
extern unsigned char setup_simple_start[];
extern uint32_t setup_simple_size;

extern struct {
	uint32_t spr8;
	uint32_t spr9;
} setup_simple_regs;

int elf_mips_probe(const char *buf, off_t len);
int elf_mips_load(int argc, char **argv, const char *buf, off_t len,
	struct kexec_info *info);
void elf_mips_usage(void);

struct arch_options_t {
	int      core_header_type;
};

#endif /* KEXEC_MIPS_H */