1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-02 07:27:10 +01:00
Files
u-boot-megous/include
Stefan Roese f457c52eb8 arm: socfpga: Fix bootcounter located at the end of internal SRAM
Commit 768f23dc8a ("ARM: socfpga: Put stack at the end of SRAM") broke
those socfpga boards that keep the bootcounter at the end of the
internal SRAM as the bootcounter needs 8 bytes by default and thus the
very first SPL call to board_init_f_alloc_reserve overwrites the
bootcounter.

This patch allows to move the initial stack pointer down a bit by
checking if CONFIG_SYS_BOOTCOUNT_ADDR is located in the internal SRAM
area and then using this address as location for the start of the
stack pointer.

No new macros / defines are added by this approach.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
2018-10-31 01:41:10 +01:00
..
2018-09-28 18:27:01 +02:00
2018-09-29 11:49:35 -06:00
2018-10-19 19:19:53 -04:00
2018-09-10 20:48:16 -04:00
2018-09-18 08:12:21 -06:00
2018-07-26 14:08:22 -05:00
2018-09-23 21:55:30 +02:00
2018-09-23 21:55:30 +02:00
2018-06-13 07:49:12 -04:00
2018-10-22 13:01:27 +02:00
2018-10-22 13:01:27 +02:00
2018-04-06 17:04:33 -04:00
2018-10-07 10:47:38 -04:00
2018-09-18 00:01:18 -06:00
2018-10-02 22:12:32 +05:30
2018-10-10 12:29:02 -05:00
2018-10-09 04:40:27 -06:00
2018-10-09 04:40:27 -06:00
2018-10-24 14:45:38 -05:00
2018-10-07 11:04:01 -04:00
2018-09-10 20:48:12 -04:00
2018-07-19 16:31:37 -04:00
2018-10-04 21:15:46 +02:00
2018-07-20 15:55:05 -04:00
2018-10-09 04:40:27 -06:00
2018-10-09 04:40:27 -06:00
2018-09-28 18:26:32 +02:00
2018-09-28 20:22:36 -04:00