[PATCH 16/18] common: board_r: Drop arch-specific ifdefs around initr_trap

Simon Glass sjg at chromium.org
Sat Nov 14 16:17:20 CET 2020


On Thu, 5 Nov 2020 at 03:11, Ovidiu Panait <ovidiu.panait at windriver.com> wrote:
>
> In order to remove the arch-specific ifdefs around initr_trap, introduce
> arch_initr_trap weak initcall. Implementations for ppc/m68k/mips have
> been moved to arch/<arch>/lib/traps.c
>
> Default implementation is a nop stub.
>
> Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
> ---
>  arch/m68k/lib/traps.c     |  7 +++++++
>  arch/mips/lib/traps.c     |  7 +++++++
>  arch/powerpc/lib/Makefile |  1 +
>  arch/powerpc/lib/traps.c  | 17 +++++++++++++++++
>  common/board_r.c          | 16 ++--------------
>  include/init.h            |  9 +++++++++
>  6 files changed, 43 insertions(+), 14 deletions(-)
>  create mode 100644 arch/powerpc/lib/traps.c

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list