]> git.itanic.dy.fi Git - linux-stable/commit
arm64: map FDT as RW for early_init_dt_scan()
authorHsin-Yi Wang <hsinyi@chromium.org>
Fri, 23 Aug 2019 06:24:50 +0000 (14:24 +0800)
committerWill Deacon <will@kernel.org>
Fri, 23 Aug 2019 15:39:16 +0000 (16:39 +0100)
commite112b032a72c78f15d0c803c5dc6be444c2e6c66
tree1356af931f59efe60649b3ab929fe822ebfe3e5b
parente21a712a9685488f5ce80495b37b9fdbe96c230d
arm64: map FDT as RW for early_init_dt_scan()

Currently in arm64, FDT is mapped to RO before it's passed to
early_init_dt_scan(). However, there might be some codes
(eg. commit "fdt: add support for rng-seed") that need to modify FDT
during init. Map FDT to RO after early fixups are done.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/mmu.h
arch/arm64/kernel/kaslr.c
arch/arm64/kernel/setup.c
arch/arm64/mm/mmu.c