plat/common: move arch-agnostic fallback functions to C file
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 1 Feb 2018 09:42:24 +0000 (18:42 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 1 Feb 2018 15:18:54 +0000 (00:18 +0900)
commit0fc50a86c1faeb8ffd42d6c1a121243595fb9143
treeca230fb4f3c64ab1b9236ecd8da6026a6cb541de
parentc43d68510e309b8e8d152c158ec46450f14d72a6
plat/common: move arch-agnostic fallback functions to C file

When we add a new callback, we need to duplicate fallbacks among
plat/common/{aarch32,aarch64}/platform_helpers.S  This is tedious.

I created a new C file, then moved 3 functions:
  plat_error_handler
  bl2_plat_preload_setup
  plat_try_next_boot_source

They are called from C, so I do not see a good reason to implement
them in assembly.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile
plat/common/aarch32/platform_helpers.S
plat/common/aarch64/platform_helpers.S
plat/common/platform_helpers_default.c [new file with mode: 0644]