diff options
author | Magnus Damm <magnus@valinux.co.jp> | 2007-03-15 17:53:19 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2007-03-19 13:38:50 +0900 |
commit | 78cd98999c9e00c2fe3347d4664c5bdc8dd91497 (patch) | |
tree | c07f068fdb9b434ddd24878f59b3bdc58cf9bd62 /kexec/kexec-elf-exec.c | |
parent | bc1eb4e071f864de82474bade25c0273a7fecb6b (diff) |
Move memory range variables
Move memory range variables
The common kexec code is currently using two global variables to keep
track of memory ranges. Other data is kept in a per-instance structure.
This mix is of per-instance and global variables is confusing and leads
to messy code in general. So let's not.
This patch moves the global variables into struct kexec_info and makes
sure that structure is passed along where needed. No logic is changed.
Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec-elf-exec.c')
-rw-r--r-- | kexec/kexec-elf-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/kexec-elf-exec.c b/kexec/kexec-elf-exec.c index f65a625..27844c3 100644 --- a/kexec/kexec-elf-exec.c +++ b/kexec/kexec-elf-exec.c @@ -93,7 +93,7 @@ int elf_exec_load(struct mem_ehdr *ehdr, struct kexec_info *info) /* If I can't use the default paddr find a new * hole for the dynamic executable. */ - if (!valid_memory_range(first, last)) { + if (!valid_memory_range(info, first, last)) { unsigned long hole; hole = locate_hole(info, last - first + 1, align, |