[PATCH v3 07/10] firmware: fw_dynamic.S: Remove _bad_dynamic_info
Anup Patel
anup at brainfault.org
Mon Feb 5 23:43:25 PST 2024
On Wed, Jan 17, 2024 at 4:12 PM Xiang W <wxjstz at 126.com> wrote:
>
> _bad_dynamic_info is same as _start_hang, so remove it.
>
> Signed-off-by: Xiang W <wxjstz at 126.com>
Looks good to me.
Reviewed-by: Anup Patel <anup at brainfault.org>
Regards,
Anup
> ---
> firmware/fw_dynamic.S | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/firmware/fw_dynamic.S b/firmware/fw_dynamic.S
> index 7ff1c6a..5ee2883 100644
> --- a/firmware/fw_dynamic.S
> +++ b/firmware/fw_dynamic.S
> @@ -11,12 +11,6 @@
>
> #include "fw_base.S"
>
> - .section .entry, "ax", %progbits
> - .align 3
> -_bad_dynamic_info:
> - wfi
> - j _bad_dynamic_info
> -
> .section .entry, "ax", %progbits
> .align 3
> .global fw_boot_hart
> @@ -30,10 +24,10 @@ fw_boot_hart:
> /* Sanity checks */
> li a1, FW_DYNAMIC_INFO_MAGIC_VALUE
> REG_L a0, FW_DYNAMIC_INFO_MAGIC_OFFSET(a2)
> - bne a0, a1, _bad_dynamic_info
> + bne a0, a1, _start_hang
> li a1, FW_DYNAMIC_INFO_VERSION_MAX
> REG_L a0, FW_DYNAMIC_INFO_VERSION_OFFSET(a2)
> - bgt a0, a1, _bad_dynamic_info
> + bgt a0, a1, _start_hang
>
> /* Read boot HART id */
> li a1, FW_DYNAMIC_INFO_VERSION_2
> --
> 2.43.0
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list