aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/lib/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/lib/traps.c')
-rw-r--r--arch/mips/lib/traps.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/lib/traps.c b/arch/mips/lib/traps.c
index df8b63f383b..540ea48e32f 100644
--- a/arch/mips/lib/traps.c
+++ b/arch/mips/lib/traps.c
@@ -99,7 +99,7 @@ static void set_handler(unsigned long offset, void *addr, unsigned long size)
flush_cache(ebase + offset, size);
}
-void trap_init(ulong reloc_addr)
+static void trap_init(ulong reloc_addr)
{
unsigned long ebase = gd->irq_sp;
@@ -131,3 +131,10 @@ void trap_restore(void)
clear_c0_status(ST0_BEV);
execution_hazard_barrier();
}
+
+int arch_initr_trap(void)
+{
+ trap_init(CONFIG_SYS_SDRAM_BASE);
+
+ return 0;
+}