Searched hist:"8 eb7e28d4c642c310f25c18f80a44dd4b01c694e" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/arch/arm64/kernel/ |
H A D | vmlinux.lds.S | diff 8eb7e28d4c642c310f25c18f80a44dd4b01c694e Mon Sep 24 11:56:18 CDT 2018 Jun Yao <yaojun8558363@gmail.com> arm64/mm: move runtime pgds to rodata
Now that deliberate writes to swapper_pg_dir are made via the fixmap, we can defend against errant writes by moving it into the rodata section. Since tramp_pg_dir and reserved_ttbr0 must be at a fixed offset from swapper_pg_dir, and are not modified at runtime, these are also moved into the rodata section. Likewise, idmap_pg_dir is not modified at runtime, and is moved into rodata.
Signed-off-by: Jun Yao <yaojun8558363@gmail.com> Reviewed-by: James Morse <james.morse@arm.com> [Mark: simplify linker script, commit message] Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
|
H A D | head.S | diff 8eb7e28d4c642c310f25c18f80a44dd4b01c694e Mon Sep 24 11:56:18 CDT 2018 Jun Yao <yaojun8558363@gmail.com> arm64/mm: move runtime pgds to rodata
Now that deliberate writes to swapper_pg_dir are made via the fixmap, we can defend against errant writes by moving it into the rodata section. Since tramp_pg_dir and reserved_ttbr0 must be at a fixed offset from swapper_pg_dir, and are not modified at runtime, these are also moved into the rodata section. Likewise, idmap_pg_dir is not modified at runtime, and is moved into rodata.
Signed-off-by: Jun Yao <yaojun8558363@gmail.com> Reviewed-by: James Morse <james.morse@arm.com> [Mark: simplify linker script, commit message] Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
|