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>
Этот коммит содержится в:
Becky Bruce
2009-05-08 12:19:27 +00:00
коммит произвёл Benjamin Herrenschmidt
родитель 31207dab7d
Коммит 49a8496525
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@@ -125,8 +125,8 @@ void __init reserve_crashkernel(void)
/* Crash kernel trumps memory limit */
if (memory_limit && memory_limit <= crashk_res.end) {
memory_limit = crashk_res.end + 1;
printk("Adjusted memory limit for crashkernel, now 0x%lx\n",
memory_limit);
printk("Adjusted memory limit for crashkernel, now 0x%llx\n",
(unsigned long long)memory_limit);
}
printk(KERN_INFO "Reserving %ldMB of memory at %ldMB "