]> git.baikalelectronics.ru Git - uboot.git/commit
armV7R: K3: am654: Allow using SPL BSS pre-relocation
authorAndreas Dannenberg <dannenberg@ti.com>
Tue, 4 Jun 2019 22:55:48 +0000 (17:55 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 17 Jul 2019 15:12:54 +0000 (11:12 -0400)
commitc9a186dbab47fdaf0631319c064e00e01e8e4e49
treee8da8940970bc4180c1adb91c07dd00ca467803e
parente16258b81dbb0ab7250061fec6802a2e86e56852
armV7R: K3: am654: Allow using SPL BSS pre-relocation

In order to be able to use more advanced driver functionality which often
relies on having BSS initialized during early boot prior to relocation
several things need to be in place:

1) Memory needs to be available for BSS to use. For this, we locate BSS
   at the top of the MCU SRAM area, with the stack starting right below
   it,
2) We need to move the initialization of BSS prior to entering
   board_init_f(). We will do this with a separate commit by turning on
   the respective CONFIG option.

In this commit we also clean up the assignment of the initial SP address
as part of the refactoring, taking into account the pre-decrement post-
increment nature in which the SP is used on ARM.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
include/configs/am65x_evm.h