]> git.dujemihanovic.xyz Git - u-boot.git/commit
arc: clean-up init procedure
authorAlexey Brodkin <abrodkin@synopsys.com>
Tue, 24 Feb 2015 16:40:36 +0000 (19:40 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 3 Apr 2015 06:47:49 +0000 (09:47 +0300)
commit3fb8016360d5433f3c4da51f8dd57550e7ef9018
tree1cc2fe2a4723565e60279386122a35abe44cb36a
parent8ee28251d95e237302c7c44929e59a813e147622
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