[PATCH] include: configs: am**x/j721e/j721s2_evm.h: Move the stack pointer init address in arm64

Tom Rini trini at konsulko.com
Thu May 5 20:53:48 CEST 2022


On Tue, Apr 19, 2022 at 08:56:02PM +0530, Aswath Govindraju wrote:

> Currently, in case of arm64 bootloader and U-Boot the stack pointer is
> initialized at an offset of NON_SECURE_MSRAM_SIZE from arm64 SPL's text
> base address. After jumping to arm64, execution is done out of DDR.
> Therefore, having an offset corresponding to the size of MSRAM does not
> have any significance.
> 
> Instead, initialize the stack pointer after an offset of 4MB from the SPL
> text base address. This helps in allocating larger memory for stack.
> 
>   ┌────────────────────┐0x80080000
>   │                    │
>   │   arm64 SPL        │
>   ├────────────────────┤
>   │        ▲           │
>   │        │           │
>   │      STACK         │
>   ├────────────────────┤0x80480000
>   │ Memory for Load    │
>   │ Buffer Allocation  │
>   ├────────────────────┤0x80800000
>   │                    │
>   │    U-Boot Image    │
>   │                    │
>   └────────────────────┘
> 
> Signed-off-by: Aswath Govindraju <a-govindraju at ti.com>

Applied to u-boot/master, thanks!

-- 
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/20220505/994242b5/attachment.sig>


More information about the U-Boot mailing list