diff options
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index fe758cedb93f..4181ec715f88 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -124,12 +124,12 @@ static void __init move_device_tree(void) | |||
124 | size = fdt_totalsize(initial_boot_params); | 124 | size = fdt_totalsize(initial_boot_params); |
125 | 125 | ||
126 | if ((memory_limit && (start + size) > PHYSICAL_START + memory_limit) || | 126 | if ((memory_limit && (start + size) > PHYSICAL_START + memory_limit) || |
127 | overlaps_crashkernel(start, size) || | 127 | !memblock_is_memory(start + size - 1) || |
128 | overlaps_initrd(start, size)) { | 128 | overlaps_crashkernel(start, size) || overlaps_initrd(start, size)) { |
129 | p = __va(memblock_phys_alloc(size, PAGE_SIZE)); | 129 | p = __va(memblock_phys_alloc(size, PAGE_SIZE)); |
130 | memcpy(p, initial_boot_params, size); | 130 | memcpy(p, initial_boot_params, size); |
131 | initial_boot_params = p; | 131 | initial_boot_params = p; |
132 | DBG("Moved device tree to 0x%p\n", p); | 132 | DBG("Moved device tree to 0x%px\n", p); |
133 | } | 133 | } |
134 | 134 | ||
135 | DBG("<- move_device_tree\n"); | 135 | DBG("<- move_device_tree\n"); |
@@ -689,7 +689,7 @@ void __init early_init_devtree(void *params) | |||
689 | { | 689 | { |
690 | phys_addr_t limit; | 690 | phys_addr_t limit; |
691 | 691 | ||
692 | DBG(" -> early_init_devtree(%p)\n", params); | 692 | DBG(" -> early_init_devtree(%px)\n", params); |
693 | 693 | ||
694 | /* Too early to BUG_ON(), do it by hand */ | 694 | /* Too early to BUG_ON(), do it by hand */ |
695 | if (!early_init_dt_verify(params)) | 695 | if (!early_init_dt_verify(params)) |
@@ -749,7 +749,7 @@ void __init early_init_devtree(void *params) | |||
749 | memblock_allow_resize(); | 749 | memblock_allow_resize(); |
750 | memblock_dump_all(); | 750 | memblock_dump_all(); |
751 | 751 | ||
752 | DBG("Phys. mem: %llx\n", memblock_phys_mem_size()); | 752 | DBG("Phys. mem: %llx\n", (unsigned long long)memblock_phys_mem_size()); |
753 | 753 | ||
754 | /* We may need to relocate the flat tree, do it now. | 754 | /* We may need to relocate the flat tree, do it now. |
755 | * FIXME .. and the initrd too? */ | 755 | * FIXME .. and the initrd too? */ |