diff mbox series

[v3,02/10] firmware: fw_base.S: remove _runtime_offset

Message ID 20240117104212.1055737-3-wxjstz@126.com
State Changes Requested
Headers show
Series Improvements to fw_base.S | expand

Commit Message

Xiang W Jan. 17, 2024, 10:41 a.m. UTC
_runtime_offset is a variable not used elsewhere, so remove it.

Signed-off-by: Xiang W <wxjstz@126.com>
---
 firmware/fw_base.S | 6 ------
 1 file changed, 6 deletions(-)

Comments

Anup Patel Feb. 6, 2024, 7:24 a.m. UTC | #1
On Wed, Jan 17, 2024 at 4:12 PM Xiang W <wxjstz@126.com> wrote:
>
> _runtime_offset is a variable not used elsewhere, so remove it.
>
> Signed-off-by: Xiang W <wxjstz@126.com>

Looks good to me.

Reviewed-by: Anup Patel <anup@brainfault.org>

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

> ---
>  firmware/fw_base.S | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/firmware/fw_base.S b/firmware/fw_base.S
> index 2f30d00..0e1b6fb 100644
> --- a/firmware/fw_base.S
> +++ b/firmware/fw_base.S
> @@ -74,8 +74,6 @@ _try_lottery:
>         REG_L   t0, 0(t0)
>         /* t1 shall has the address of _fw_start */
>         sub     t2, t1, t0
> -       lla     t3, _runtime_offset
> -       REG_S   t2, (t3)
>         lla     t0, __rel_dyn_start
>         lla     t1, __rel_dyn_end
>         beq     t0, t1, _relocate_done
> @@ -500,10 +498,6 @@ _skip_trap_exit_rv32_hyp:
>
>         .data
>         .align 3
> -#ifdef FW_PIC
> -_runtime_offset:
> -       RISCV_PTR       0
> -#endif
>  _relocate_lottery:
>         RISCV_PTR       0
>  _boot_status:
> --
> 2.43.0
>
>
> --
> opensbi mailing list
> opensbi@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
diff mbox series

Patch

diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index 2f30d00..0e1b6fb 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -74,8 +74,6 @@  _try_lottery:
 	REG_L	t0, 0(t0)
 	/* t1 shall has the address of _fw_start */
 	sub	t2, t1, t0
-	lla	t3, _runtime_offset
-	REG_S	t2, (t3)
 	lla	t0, __rel_dyn_start
 	lla	t1, __rel_dyn_end
 	beq	t0, t1, _relocate_done
@@ -500,10 +498,6 @@  _skip_trap_exit_rv32_hyp:
 
 	.data
 	.align 3
-#ifdef FW_PIC
-_runtime_offset:
-	RISCV_PTR	0
-#endif
 _relocate_lottery:
 	RISCV_PTR	0
 _boot_status: