diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2005-08-04 17:46:07 +0530 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2006-07-27 09:36:34 -0600 |
commit | 1ac3ddd1d4a3d8cb7af5fd02c1ffb85893c4ea50 (patch) | |
tree | 9df26ececf6fdd915fc54c7d080788efdd40a7b7 /kexec/kexec.h | |
parent | dcb661fb3e778052d64b1b1557621856eade403a (diff) |
crashdump backup region handling
o This patch adds support for reserving space for backup region. Also adds code
in purgatory to copy the first 640K to backup region.
o Moved kexec_flags inside kexec_info structure.
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
Diffstat (limited to 'kexec/kexec.h')
-rw-r--r-- | kexec/kexec.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kexec/kexec.h b/kexec/kexec.h index 10a95d6..a125cb7 100644 --- a/kexec/kexec.h +++ b/kexec/kexec.h @@ -91,6 +91,8 @@ do { \ } while(0) #endif +extern unsigned long long mem_min, mem_max; + struct kexec_segment { const void *buf; size_t bufsz; @@ -112,10 +114,13 @@ struct kexec_info { int nr_segments; void *entry; struct mem_ehdr rhdr; + unsigned long backup_start; + unsigned long kexec_flags; }; void usage(void); -int get_memory_ranges(struct memory_range **range, int *ranges); +int get_memory_ranges(struct memory_range **range, int *ranges, + unsigned long kexec_flags); int valid_memory_range(unsigned long sstart, unsigned long send); int valid_memory_segment(struct kexec_segment *segment); void print_segments(FILE *file, struct kexec_info *info); @@ -188,7 +193,7 @@ extern size_t purgatory_size; void arch_usage(void); int arch_process_options(int argc, char **argv); -int arch_compat_trampoline(struct kexec_info *info, unsigned long *flags); +int arch_compat_trampoline(struct kexec_info *info); void arch_update_purgatory(struct kexec_info *info); #endif /* KEXEC_H */ |