[PATCH] spl: provide weak empty stub for reset_cpu()
Tom Rini
trini at konsulko.com
Thu Aug 17 19:45:07 CEST 2023
On Thu, Aug 17, 2023 at 05:35:37PM +0300, Oleksandr Suvorov wrote:
> This stub needs to link SPL properly.
>
> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov at foundries.io>
> ---
>
> common/spl/spl.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/common/spl/spl.c b/common/spl/spl.c
> index 0062f3f45d9..781858891b9 100644
> --- a/common/spl/spl.c
> +++ b/common/spl/spl.c
> @@ -1026,3 +1026,11 @@ ulong bootcount_load(void)
> return 0;
> }
> #endif
> +
> +/**
> + * Weak default function for board-specific reset. Provide empty stub only.
> + */
> +__weak void reset_cpu(void)
> +{
> + /* Nothing to do! */
> +}
NAK, there are already architectures and SoCs that have a weak
reset_cpu. If you're working on one without reset_cpu, it needs to be
implemented one way or another, not like this.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230817/fefd59a5/attachment.sig>
More information about the U-Boot
mailing list