aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorYalin Wang <Yalin.Wang@sonymobile.com>2014-09-25 22:30:59 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-10-02 16:28:16 -0400
commit562c85cadb065e33ec9f651b8d41cdfd3054a5d0 (patch)
tree6b7269197b898825ae032ca2b129942ba83edd87 /arch/arm64/kernel/vmlinux.lds.S
parente16343c47e4276f5ebc77ca16feb5e50ca1918f9 (diff)
ARM: 8168/1: extend __init_end to a page align address
This patch changes the __init_end address to a page align address, so that free_initmem() can free the whole .init section, because if the end address is not page aligned, it will round down to a page align address, then the tail unligned page will not be freed. Signed-off-by: wang <yalin.wang2010@gmail.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm64/kernel/vmlinux.lds.S')
-rw-r--r--arch/arm64/kernel/vmlinux.lds.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
index 97f0c0429dfa..edf8715ba39b 100644
--- a/arch/arm64/kernel/vmlinux.lds.S
+++ b/arch/arm64/kernel/vmlinux.lds.S
@@ -97,9 +97,9 @@ SECTIONS
97 97
98 PERCPU_SECTION(64) 98 PERCPU_SECTION(64)
99 99
100 . = ALIGN(PAGE_SIZE);
100 __init_end = .; 101 __init_end = .;
101 102
102 . = ALIGN(PAGE_SIZE);
103 _data = .; 103 _data = .;
104 _sdata = .; 104 _sdata = .;
105 RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE) 105 RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE)