From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Mon, 30 Nov 2020 19:24:12 +0100 Subject: [PATCH v4 16/18] common: board_r: Drop arch-specific ifdefs around initr_trap In-Reply-To: <20201128084320.10164-17-ovidiu.panait@windriver.com> References: <20201128084320.10164-1-ovidiu.panait@windriver.com> <20201128084320.10164-17-ovidiu.panait@windriver.com> Message-ID: <65524bb3954aaa3d6b372c5041b591c2042c96c5.camel@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Samstag, den 28.11.2020, 10:43 +0200 schrieb Ovidiu Panait: > 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//lib/traps.c > > Default implementation is a nop stub. > > Signed-off-by: Ovidiu Panait > Reviewed-by: Simon Glass > --- > v4 updates: > - Drop trap_init declaration from init.h and make arch-specific > implementations static for mips and m68k (on powerpc trap_init is an > asm routine) > > v3 updates: > - none > > v2 updates: > - add reviewed-by tag > > arch/m68k/lib/traps.c | 9 ++++++++- > arch/mips/lib/traps.c | 9 ++++++++- > arch/powerpc/lib/Makefile | 1 + > arch/powerpc/lib/traps.c | 19 +++++++++++++++++++ > common/board_r.c | 16 ++-------------- > include/init.h | 10 +++++++++- > 6 files changed, 47 insertions(+), 17 deletions(-) > create mode 100644 arch/powerpc/lib/traps.c > > Reviewed-by: Daniel Schwierzeck -- - Daniel