firmware: Minor optimization for relocate
authorDongdong Zhang <zhangdongdong@eswincomputing.com>
Tue, 29 Nov 2022 03:54:07 +0000 (11:54 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 5 Dec 2022 05:17:38 +0000 (10:47 +0530)
commitcfbabb9ec6ba4979411ff8050638ac2628806beb
tree91d2ca508f4c6742a8705ff614531845e1b7322f
parentad2ac292635ec48fece67ce62bd7e967d9538616
firmware: Minor optimization for relocate

The t3 register stores the address of _load_end. If relocation is not
required, it is unnecessary to calculate the address of _load_end.

This can reduce the operation time of two instructions.

Signed-off-by: Dongdong Zhang <zhangdongdong@eswincomputing.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
firmware/fw_base.S