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>
Этот коммит содержится в:

коммит произвёл
Benjamin Herrenschmidt

родитель
31207dab7d
Коммит
49a8496525
@@ -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 "
|
||||
|
Ссылка в новой задаче
Block a user