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>
Showing
- arch/arc/include/asm/init_helpers.h 12 additions, 0 deletionsarch/arc/include/asm/init_helpers.h
- arch/arc/include/asm/relocate.h 16 additions, 0 deletionsarch/arc/include/asm/relocate.h
- arch/arc/include/asm/u-boot-arc.h 3 additions, 0 deletionsarch/arc/include/asm/u-boot-arc.h
- arch/arc/lib/Makefile 1 addition, 0 deletionsarch/arc/lib/Makefile
- arch/arc/lib/cpu.c 0 additions, 13 deletionsarch/arc/lib/cpu.c
- arch/arc/lib/init_helpers.c 25 additions, 0 deletionsarch/arc/lib/init_helpers.c
- arch/arc/lib/relocate.c 19 additions, 0 deletionsarch/arc/lib/relocate.c
- arch/arc/lib/start.S 18 additions, 64 deletionsarch/arc/lib/start.S
- common/board_f.c 4 additions, 4 deletionscommon/board_f.c
Loading
Please register or sign in to comment