mirror of https://gitee.com/openkylin/linux.git
238962ac71
To speed up decompression, the decompressor sets up a flat, cacheable mapping of memory. However, when there is insufficient space to hold the page tables for this mapping, we don't bother to enable the caches and subsequently skip all the cache maintenance hooks. Skipping the cache maintenance before jumping to the relocated code allows the processor to predict the branch and populate the I-cache with stale data before the relocation loop has completed (since a bootloader may have SCTLR.I set, which permits normal, cacheable instruction fetches regardless of SCTLR.M). This patch moves the cache maintenance check into the maintenance routines themselves, allowing the v6/v7 versions to invalidate the I-cache regardless of the MMU state. Cc: <stable@vger.kernel.org> Reported-by: Marc Carino <marc.ceeeee@gmail.com> Tested-by: Julien Grall <julien.grall@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
atags_to_fdt.c | ||
big-endian.S | ||
debug.S | ||
decompress.c | ||
head-sa1100.S | ||
head-sharpsl.S | ||
head-shmobile.S | ||
head-xscale.S | ||
head.S | ||
libfdt_env.h | ||
ll_char_wr.S | ||
misc.c | ||
mmcif-sh7372.c | ||
piggy.gzip.S | ||
piggy.lz4.S | ||
piggy.lzma.S | ||
piggy.lzo.S | ||
piggy.xzkern.S | ||
sdhi-sh7372.c | ||
sdhi-shmobile.c | ||
sdhi-shmobile.h | ||
string.c | ||
vmlinux.lds.S |