]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: Fix return_to_bootrom()
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:14:23 +0000 (11:14 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:32 +0000 (09:49 +0200)
commitbc2fc95e4dad0355719216d911f008d402dc704f
tree4b58e482a7fee7313ac67c451c370dc723c2f7d1
parent3de1c7519a7b523bb7d8678ce182cc3154d96432
arm: mvebu: Fix return_to_bootrom()

Register r0 should be set to return value 0x0 - NO_ERR.

Set r0 with return value after all registers are restored from the
stack, so that the return value is always correct.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: 944c7a317675 ("arm: mvebu: Add option to use UART xmodem protocol via kwboot")
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
arch/arm/mach-mvebu/lowlevel_spl.S