ARM: decompressor: switch to by-VA cache maintenance for v7 cores
authorArd Biesheuvel <ardb@kernel.org>
Tue, 18 Feb 2020 16:06:14 +0000 (17:06 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 27 Feb 2020 10:15:50 +0000 (11:15 +0100)
commit401b368caaecdce1cf8f05bab448172752230cb0
tree59714c64290a097c0fd1dc272eab6d21c8e7382c
parente114412f616446708b3d1e559ff4af9db7ade46e
ARM: decompressor: switch to by-VA cache maintenance for v7 cores

Update the v7 cache_clean_flush routine to take into account the
memory range passed in r0/r1, and perform cache maintenance by
virtual address on this range instead of set/way maintenance, which
is inappropriate for the purpose of maintaining the cached state of
memory contents.

Since this removes any use of the stack in the implementation of
cache_clean_flush(), we can also drop some code that manages the
value of the stack pointer before calling it.

Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/boot/compressed/head.S