MIPS: compressed: Use correct instruction for 64 bit code
authorGregory CLEMENT <gregory.clement@bootlin.com>
Tue, 12 Dec 2023 16:34:33 +0000 (17:34 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 21 Dec 2023 14:30:03 +0000 (15:30 +0100)
commitf99c37d562250cbceed262723f91944c981eeb7b
treee5967cbfabbb6481e970de159b9523f5e220d9fa
parent01940cd4a6b9c47995a0cdaaafdd459b0d2221a2
MIPS: compressed: Use correct instruction for 64 bit code

The code clearing BSS already use macro or use correct instruction
depending if the CPU is 32 bits or 64 bits. However, a few
instructions remained 32 bits only.

By using the accurate MACRO, it is now possible to deal with memory
address beyond 32 bits. As a side effect, when using 64bits processor,
it also divides the loop number needed to clear the BSS by 2.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/compressed/head.S