[EXTERNAL] [PATCH] common: spl: Warn about overflow of SRAM stack

Kamlesh Gurudasani kamlesh at ti.com
Wed Jun 7 07:00:46 CEST 2023


Vignesh Raghavendra <vigneshr at ti.com> writes:

> If early stack usage is exactly same as SIZE_LIMIT_PROVIDE_STACK, then
> its most likely to have overflowed beyond this limit and corrupted any
> regions beyond stack. Warn about this to the user.
>
> Signed-off-by: Vignesh Raghavendra <vigneshr at ti.com>
> ---
>
> I found this useful when debugging slient corruption of code/data leading
> to random failures post relocation.
>
>  common/spl/spl.c | 7 +++++++
>  1 file changed, 7 insertions(+)
Reviewed-by: Kamlesh Gurudasani <kamlesh at ti.com>


More information about the U-Boot mailing list