diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-11-29 12:15:59 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-12-12 12:06:28 +0100 |
commit | 376f5a3bd7e21337dc41f7abb56c2c74ac63038a (patch) | |
tree | 01e6fce495ac6e9eb12deee9dfb398e7f82e041c /arch/arm64/kernel/head.S | |
parent | arm64: mm: Take potential load offset into account when KASLR is off (diff) | |
download | linux-376f5a3bd7e21337dc41f7abb56c2c74ac63038a.tar.xz linux-376f5a3bd7e21337dc41f7abb56c2c74ac63038a.zip |
arm64: mm: get rid of kimage_vaddr global variable
We store the address of _text in kimage_vaddr, but since commit
09e3c22a86f6889d ("arm64: Use a variable to store non-global mappings
decision"), we no longer reference this variable from modules so we no
longer need to export it.
In fact, we don't need it at all so let's just get rid of it.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20231129111555.3594833-46-ardb@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/head.S')
-rw-r--r-- | arch/arm64/kernel/head.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 7b236994f0e1..cab7f91949d8 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -482,7 +482,7 @@ SYM_FUNC_START_LOCAL(__primary_switched) str_l x21, __fdt_pointer, x5 // Save FDT pointer - ldr_l x4, kimage_vaddr // Save the offset between + adrp x4, _text // Save the offset between sub x4, x4, x0 // the kernel virtual and str_l x4, kimage_voffset, x5 // physical mappings |