]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: simplify longjmp
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 23 Mar 2021 18:11:26 +0000 (19:11 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 8 Apr 2021 07:37:29 +0000 (15:37 +0800)
commit2343722a6b6a74d35c163b22098b9279ed34e897
treed35e20f4c1b298dcfc0b9b1759d20188f1449e9e
parentce17419a6ae716052ca953acf65c1472227095d2
riscv: simplify longjmp

The value returned by setjmp must be nonzero. If zero is passed as
parameter it must be replaced by 1.

This patch reduces the code size a bit.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/lib/setjmp.S