init.c (7ae383be81781c5e1347f71c3eb0d53ce5188200) init.c (24bbd929e6b9e62afd263c42b4318d3b603c956c)
1/*
2 * Based on arch/arm/mm/init.c
3 *
4 * Copyright (C) 1995-2005 Russell King
5 * Copyright (C) 2012 ARM Ltd.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 156 unchanged lines hidden (view full) ---

165 * pagetables with memblock.
166 */
167 memblock_reserve(__pa(_text), _end - _text);
168#ifdef CONFIG_BLK_DEV_INITRD
169 if (initrd_start)
170 memblock_reserve(__virt_to_phys(initrd_start), initrd_end - initrd_start);
171#endif
172
1/*
2 * Based on arch/arm/mm/init.c
3 *
4 * Copyright (C) 1995-2005 Russell King
5 * Copyright (C) 2012 ARM Ltd.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 156 unchanged lines hidden (view full) ---

165 * pagetables with memblock.
166 */
167 memblock_reserve(__pa(_text), _end - _text);
168#ifdef CONFIG_BLK_DEV_INITRD
169 if (initrd_start)
170 memblock_reserve(__virt_to_phys(initrd_start), initrd_end - initrd_start);
171#endif
172
173 early_init_fdt_reserve_self();
173 early_init_fdt_scan_reserved_mem();
174
175 /* 4GB maximum for 32-bit only capable devices */
176 if (IS_ENABLED(CONFIG_ZONE_DMA))
177 arm64_dma_phys_limit = max_zone_dma_phys();
178 else
179 arm64_dma_phys_limit = PHYS_MASK + 1;
180 dma_contiguous_reserve(arm64_dma_phys_limit);

--- 196 unchanged lines hidden ---
174 early_init_fdt_scan_reserved_mem();
175
176 /* 4GB maximum for 32-bit only capable devices */
177 if (IS_ENABLED(CONFIG_ZONE_DMA))
178 arm64_dma_phys_limit = max_zone_dma_phys();
179 else
180 arm64_dma_phys_limit = PHYS_MASK + 1;
181 dma_contiguous_reserve(arm64_dma_phys_limit);

--- 196 unchanged lines hidden ---