]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arc: clean-up init procedure
authorAlexey Brodkin <abrodkin@synopsys.com>
Tue, 24 Feb 2015 16:40:36 +0000 (19:40 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:38:14 +0000 (14:38 +0200)
commitd2c9472def80b6c5598038dcfcd229c5861d176d
treefc0dde6fa3a8cf78ef4d05947dc2e164784ef4c3
parent3584883ffbee58d1d78af1c355a14a891cd215d1
arc: clean-up init procedure

Intention behind this work was elimination of as much assembly-written
code as it is possible.

In case of ARC we already have relocation fix-up implemented in C so why
don't we use C for U-Boot copying, .bss zeroing etc.

It turned out x86 uses pretty similar approach so we re-used parts of
code in "board_f.c" initially implemented for x86.

Now assembly usage during init is limited to stack- and frame-pointer
setup before and after relocation.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Simon Glass <sjg@chromium.org>
arch/arc/include/asm/init_helpers.h [new file with mode: 0644]
arch/arc/include/asm/relocate.h [new file with mode: 0644]
arch/arc/include/asm/u-boot-arc.h
arch/arc/lib/Makefile
arch/arc/lib/cpu.c
arch/arc/lib/init_helpers.c [new file with mode: 0644]
arch/arc/lib/relocate.c
arch/arc/lib/start.S
common/board_f.c