diff options
Diffstat (limited to 'arch/x86/mach-voyager/setup.c')
-rw-r--r-- | arch/x86/mach-voyager/setup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/mach-voyager/setup.c b/arch/x86/mach-voyager/setup.c index 662b5c0a77d6..f4aca9fa9546 100644 --- a/arch/x86/mach-voyager/setup.c +++ b/arch/x86/mach-voyager/setup.c | |||
@@ -62,6 +62,7 @@ void __init time_init_hook(void) | |||
62 | char *__init machine_specific_memory_setup(void) | 62 | char *__init machine_specific_memory_setup(void) |
63 | { | 63 | { |
64 | char *who; | 64 | char *who; |
65 | int new_nr; | ||
65 | 66 | ||
66 | who = "NOT VOYAGER"; | 67 | who = "NOT VOYAGER"; |
67 | 68 | ||
@@ -111,9 +112,11 @@ char *__init machine_specific_memory_setup(void) | |||
111 | * Otherwise fake a memory map; one section from 0k->640k, | 112 | * Otherwise fake a memory map; one section from 0k->640k, |
112 | * the next section from 1mb->appropriate_mem_k | 113 | * the next section from 1mb->appropriate_mem_k |
113 | */ | 114 | */ |
115 | new_nr = boot_params.e820_entries; | ||
114 | sanitize_e820_map(boot_params.e820_map, | 116 | sanitize_e820_map(boot_params.e820_map, |
115 | ARRAY_SIZE(boot_params.e820_map), | 117 | ARRAY_SIZE(boot_params.e820_map), |
116 | &boot_params.e820_entries); | 118 | &new_nr); |
119 | boot_params.e820_entries = new_nr; | ||
117 | if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries) | 120 | if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries) |
118 | < 0) { | 121 | < 0) { |
119 | unsigned long mem_size; | 122 | unsigned long mem_size; |