diff options
author | Becky Bruce <beckyb@kernel.crashing.org> | 2009-05-08 08:19:27 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-05-15 02:43:41 -0400 |
commit | 49a849652513235a244dfbf5e58c54f796bd1148 (patch) | |
tree | 809fe33bad6255fab153fb5a7f03170150ab88c7 /arch/powerpc/kernel/machine_kexec.c | |
parent | 31207dab7d2e63795eb15823947bd2f7025b08e2 (diff) |
powerpc: Allow mem=x cmdline to work with 4G+
We're currently choking on mem=4g (and above) due to memory_limit
being specified as an unsigned long. Make memory_limit
phys_addr_t to fix this.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/machine_kexec.c')
-rw-r--r-- | arch/powerpc/kernel/machine_kexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c index d59e2b1bdcba..bb3d893a8353 100644 --- a/arch/powerpc/kernel/machine_kexec.c +++ b/arch/powerpc/kernel/machine_kexec.c | |||
@@ -125,8 +125,8 @@ void __init reserve_crashkernel(void) | |||
125 | /* Crash kernel trumps memory limit */ | 125 | /* Crash kernel trumps memory limit */ |
126 | if (memory_limit && memory_limit <= crashk_res.end) { | 126 | if (memory_limit && memory_limit <= crashk_res.end) { |
127 | memory_limit = crashk_res.end + 1; | 127 | memory_limit = crashk_res.end + 1; |
128 | printk("Adjusted memory limit for crashkernel, now 0x%lx\n", | 128 | printk("Adjusted memory limit for crashkernel, now 0x%llx\n", |
129 | memory_limit); | 129 | (unsigned long long)memory_limit); |
130 | } | 130 | } |
131 | 131 | ||
132 | printk(KERN_INFO "Reserving %ldMB of memory at %ldMB " | 132 | printk(KERN_INFO "Reserving %ldMB of memory at %ldMB " |