]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: board_r: Drop arch-specific ifdefs around initr_trap
authorOvidiu Panait <ovidiu.panait@windriver.com>
Sat, 28 Nov 2020 08:43:18 +0000 (10:43 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:36:12 +0000 (14:36 -0500)
commit130845bac11ecd542587b2d2ce2b2fe87f112f1d
treeb8b58b35b13065cd391428b5608316b03d05b303
parentc65abc70fb7212301b70c6ab05ba2aa22c31c69e
common: board_r: Drop arch-specific ifdefs around initr_trap

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@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/m68k/lib/traps.c
arch/mips/lib/traps.c
arch/powerpc/lib/Makefile
arch/powerpc/lib/traps.c [new file with mode: 0644]
common/board_r.c
include/init.h