]> git.dujemihanovic.xyz Git - u-boot.git/commit
include: configs: am**x/j721e/j721s2_evm.h: Move the stack pointer init address in...
authorAswath Govindraju <a-govindraju@ti.com>
Tue, 19 Apr 2022 15:26:02 +0000 (20:56 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 13:29:58 +0000 (09:29 -0400)
commit56717a1388025b1f6dbc6072b679ee6e8390c32c
tree920c4c91b33dd22b9289b55a2fac5bbfa85e4944
parent1a80ef5520fc0751c5055d422810bf22c6c7e526
include: configs: am**x/j721e/j721s2_evm.h: Move the stack pointer init address in arm64

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@ti.com>
include/configs/am64x_evm.h
include/configs/am65x_evm.h
include/configs/j721e_evm.h
include/configs/j721s2_evm.h