|
@@ -230,11 +230,8 @@ phys_addr_t __init arm_memblock_steal(phys_addr_t size, phys_addr_t align)
|
|
|
void __init arm_memblock_init(const struct machine_desc *mdesc)
|
|
|
{
|
|
|
/* Register the kernel text, kernel data and initrd with memblock. */
|
|
|
-#ifdef CONFIG_XIP_KERNEL
|
|
|
- memblock_reserve(__pa(_sdata), _end - _sdata);
|
|
|
-#else
|
|
|
- memblock_reserve(__pa(_stext), _end - _stext);
|
|
|
-#endif
|
|
|
+ memblock_reserve(__pa(KERNEL_START), KERNEL_END - KERNEL_START);
|
|
|
+
|
|
|
#ifdef CONFIG_BLK_DEV_INITRD
|
|
|
/* FDT scan will populate initrd_start */
|
|
|
if (initrd_start && !phys_initrd_size) {
|