diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-15 03:57:40 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-02-28 11:05:46 +0000 |
commit | a09975bf6c756e4555a95258ff4b2286dcfddc4e (patch) | |
tree | 3e7ef22bd4bdf3dfe942321f50b6ca4d91bcf52d /arch/arm/mm/init.c | |
parent | 4e23612bb09809ef89eb396fd5f568392e0f1ec7 (diff) | |
download | linux-a09975bf6c756e4555a95258ff4b2286dcfddc4e.tar.gz linux-a09975bf6c756e4555a95258ff4b2286dcfddc4e.tar.bz2 linux-a09975bf6c756e4555a95258ff4b2286dcfddc4e.zip |
ARM: 8639/1: Define KERNEL_START and KERNEL_END
In preparation for adding CONFIG_DEBUG_VIRTUAL support, define a set of
common constants: KERNEL_START and KERNEL_END which abstract
CONFIG_XIP_KERNEL vs. !CONFIG_XIP_KERNEL. Update the code where
relevant.
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 370581aeb871..4127f578086c 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -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) { |