]> git.baikalelectronics.ru Git - uboot.git/commit
sh: Fix OF_SEPARATE support
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 1 Sep 2019 16:05:03 +0000 (18:05 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 2 Sep 2019 15:38:42 +0000 (17:38 +0200)
commit8e8aad140e3c9a6f06d8047d18197d3ea0550136
tree3486e385432ac1defb118413a5b0adc92c7c1584
parent8497fca6f3ffd562b40e4c4bac15cb9a7feddcaf
sh: Fix OF_SEPARATE support

If the OF_SEPARATE is enabled, the DT is appended past the _end symbol.
The current code however clears BSS very early, which overwrites the DT
blob with zeroes. Moreover, the early code relocates U-Boot into RAM to
the correct location, but does not relocate the DT.

This patch adds code to relocate the DT and avoids clearing BSS too
early, thus addressing both problems with OF_SEPARATE on SH.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/u-boot.lds
arch/sh/lib/start.S