u-boot-brain/arch
Vladimir Zapolskiy 9c141b2bd7 sh4: fix start.S by calling board_init_f() after first code relocation
Like on ARM platform keep the first code relocation from a U-boot
image storage to RAM at CONFIG_SYS_TEXT_BASE, then pass execution to a
generic board_init_f() with empty GD flags. If CONFIG_SYS_TEXT_BASE is
equal to a calculated by board_init_f() relocation address there will
be no more code and data copy, however it's worth to mention that the
first copy happens even if $pc on _start is the same as
CONFIG_SYS_TEXT_BASE, on practice this works without a problem.

Also note that _sh_start is renamed back to _start to correct
gd->mon_len calculation by setup_mon_len(), the opposite rename was
done in pre-generic board commit 2024b968ee ("sh: Fix build in start.S").

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-12-02 21:32:53 -05:00
..
arc Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
arm ARM: zynq: Enable SD1 and qspi for picozed board 2016-12-02 14:36:01 +01:00
avr32 efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
blackfin common/Kconfig: Add DISPLAY_CPUINFO 2016-10-12 08:04:34 -04:00
m68k efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
microblaze efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
mips MIPS: Fix map_physmem for cached mappings 2016-11-30 16:18:19 +01:00
nds32 nds32: Support relocation. 2016-09-29 15:38:10 +08:00
nios2 efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
openrisc efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
powerpc Merge git://git.denx.de/u-boot-mpc85xx 2016-11-29 19:42:48 -05:00
sandbox drivers/pci/Kconfig: Add PCI 2016-10-27 20:33:56 -04:00
sh sh4: fix start.S by calling board_init_f() after first code relocation 2016-12-02 21:32:53 -05:00
sparc efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
x86 efi_loader: Allow to compile helloworld.efi w/o bundling it 2016-11-27 09:53:39 -05:00
xtensa Remove arch/${ARCH}/include/asm/errno.h 2016-09-23 17:56:18 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig sandbox, x86: select DM_KEYBOARD instead of default y entry 2016-10-01 20:04:33 -04:00