aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-11-28 10:43:18 +0200
committerTom Rini <trini@konsulko.com>2021-01-15 14:36:12 -0500
commit130845bac11ecd542587b2d2ce2b2fe87f112f1d (patch)
treeb8b58b35b13065cd391428b5608316b03d05b303 /arch/m68k
parentc65abc70fb7212301b70c6ab05ba2aa22c31c69e (diff)
downloadu-boot-130845bac11ecd542587b2d2ce2b2fe87f112f1d.zip
u-boot-130845bac11ecd542587b2d2ce2b2fe87f112f1d.tar.gz
u-boot-130845bac11ecd542587b2d2ce2b2fe87f112f1d.tar.bz2
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>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/lib/traps.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/m68k/lib/traps.c b/arch/m68k/lib/traps.c
index c49141f..0c2c1a9 100644
--- a/arch/m68k/lib/traps.c
+++ b/arch/m68k/lib/traps.c
@@ -40,7 +40,7 @@ void exc_handler(struct pt_regs *fp) {
for(;;);
}
-void trap_init(ulong value) {
+static void trap_init(ulong value) {
unsigned long *vec = (ulong *)value;
int i;
@@ -59,3 +59,10 @@ void trap_init(ulong value) {
setvbr(value); /* set vector base register to new table */
}
+
+int arch_initr_trap(void)
+{
+ trap_init(CONFIG_SYS_SDRAM_BASE);
+
+ return 0;
+}