diff options
author | Bin Meng <bmeng@tinylab.org> | 2023-04-04 12:46:00 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-04-17 08:55:49 +0530 |
commit | f692289ed42882567491c35700a1feb64ba540b5 (patch) | |
tree | 4c60927e2a31c10042437f274984bacec02347c6 /firmware/fw_base.S | |
parent | eeab500a65d8a576874b36653a02c864e515b5e2 (diff) | |
download | opensbi-f692289ed42882567491c35700a1feb64ba540b5.zip opensbi-f692289ed42882567491c35700a1feb64ba540b5.tar.gz opensbi-f692289ed42882567491c35700a1feb64ba540b5.tar.bz2 |
firmware: Optimize loading relocation type
't5' already contains relocation type so don't bother reloading it.
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Xiang W <wxjstz@126.com>
Diffstat (limited to 'firmware/fw_base.S')
-rw-r--r-- | firmware/fw_base.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S index 5a3e894..2d6be70 100644 --- a/firmware/fw_base.S +++ b/firmware/fw_base.S @@ -95,7 +95,6 @@ _try_lottery: lla t4, __dyn_sym_start 4: - REG_L t5, -(REGBYTES*2)(t0) /* t5 <-- relocation info:type */ srli t6, t5, SYM_INDEX /* t6 <--- sym table index */ andi t5, t5, 0xFF /* t5 <--- relocation type */ li t3, RELOC_TYPE |