firmware: Minor optimization in _scratch_init()
authorBin Meng <bmeng.cn@gmail.com>
Sat, 10 Jul 2021 14:00:31 +0000 (22:00 +0800)
committerAnup Patel <anup@brainfault.org>
Sun, 11 Jul 2021 06:11:50 +0000 (11:41 +0530)
commit14c7f71c0da641ece1b91ef0bde190f66c980a3e
tree262d89849c3faf6de46ff0e111bfe1c98c9c5f67
parent0e12aa8dee632f67dbb458aa5d3ee38f7db4e70c
firmware: Minor optimization in _scratch_init()

Before entering _scratch_init(), register t3 already holds a copy
of the firmware end address, hence there is no need to calculate
it again. This reduces 3 instructions in each _scratch_init() loop.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
firmware/fw_base.S