Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: update linker script to increased L1_CACHE_BYTES value

Bring the linker script in line with the recent increase of
L1_CACHE_BYTES to 128. Replace the hardcoded value of 64 with the
symbolic constant.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
[catalin.marinas@arm.com: fix up RW_DATA_SECTION as well]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Ard Biesheuvel and committed by
Catalin Marinas
98fb7548 527e9316

+3 -2
+3 -2
arch/arm64/kernel/vmlinux.lds.S
··· 5 5 */ 6 6 7 7 #include <asm-generic/vmlinux.lds.h> 8 + #include <asm/cache.h> 8 9 #include <asm/kernel-pgtable.h> 9 10 #include <asm/thread_info.h> 10 11 #include <asm/memory.h> ··· 141 140 ARM_EXIT_KEEP(EXIT_DATA) 142 141 } 143 142 144 - PERCPU_SECTION(64) 143 + PERCPU_SECTION(L1_CACHE_BYTES) 145 144 146 145 . = ALIGN(PAGE_SIZE); 147 146 __init_end = .; ··· 159 158 . = ALIGN(PAGE_SIZE); 160 159 _data = .; 161 160 _sdata = .; 162 - RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE) 161 + RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) 163 162 PECOFF_EDATA_PADDING 164 163 _edata = .; 165 164