On Thu, 5 Nov 2020 at 03:11, Ovidiu Panait <ovidiu.pan...@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.pan...@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 <s...@chromium.org>

Reply via email to