summaryrefslogtreecommitdiff
path: root/kexec/arch/mips/kexec-mips.h
diff options
context:
space:
mode:
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>2016-12-02 10:49:08 +0100
committerSimon Horman <horms@verge.net.au>2016-12-09 08:56:16 +0100
commitfecd481fbe6102dac2beb467a616401a0cb8ab2e (patch)
treed8c5da5d6fd719146b31093121560977c73d2a62 /kexec/arch/mips/kexec-mips.h
parentb5f715e98eac3025273d64685b511a97f817100b (diff)
mips: move arch option parsing from elf loader to common arch code
At the moment only commandline handling is implemented and there is nothing elf-specific about it, so all of the commandline parsing logic can be moved to common arch code. getopt() options are moved to KEXEC_ARCH_OPTIONS macro (as many platforms currently do) to avoid unnecessary duplication. Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/mips/kexec-mips.h')
-rw-r--r--kexec/arch/mips/kexec-mips.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/mips/kexec-mips.h b/kexec/arch/mips/kexec-mips.h
index e67960b..2991b2d 100644
--- a/kexec/arch/mips/kexec-mips.h
+++ b/kexec/arch/mips/kexec-mips.h
@@ -13,7 +13,8 @@ int elf_mips_load(int argc, char **argv, const char *buf, off_t len,
void elf_mips_usage(void);
struct arch_options_t {
- int core_header_type;
+ char *command_line;
+ int core_header_type;
};
#endif /* KEXEC_MIPS_H */