|
@@ -310,7 +310,7 @@ static void __init arm64_memory_present(void)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-static phys_addr_t memory_limit = (phys_addr_t)ULLONG_MAX;
|
|
|
+static phys_addr_t memory_limit = PHYS_ADDR_MAX;
|
|
|
|
|
|
/*
|
|
|
* Limit the memory size that was specified via FDT.
|
|
@@ -401,7 +401,7 @@ void __init arm64_memblock_init(void)
|
|
|
* high up in memory, add back the kernel region that must be accessible
|
|
|
* via the linear mapping.
|
|
|
*/
|
|
|
- if (memory_limit != (phys_addr_t)ULLONG_MAX) {
|
|
|
+ if (memory_limit != PHYS_ADDR_MAX) {
|
|
|
memblock_mem_limit_remove_map(memory_limit);
|
|
|
memblock_add(__pa_symbol(_text), (u64)(_end - _text));
|
|
|
}
|
|
@@ -666,7 +666,7 @@ __setup("keepinitrd", keepinitrd_setup);
|
|
|
*/
|
|
|
static int dump_mem_limit(struct notifier_block *self, unsigned long v, void *p)
|
|
|
{
|
|
|
- if (memory_limit != (phys_addr_t)ULLONG_MAX) {
|
|
|
+ if (memory_limit != PHYS_ADDR_MAX) {
|
|
|
pr_emerg("Memory Limit: %llu MB\n", memory_limit >> 20);
|
|
|
} else {
|
|
|
pr_emerg("Memory Limit: none\n");
|