summaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-11-28 11:43:18 +0300
committerTom Rini <trini@konsulko.com>2021-01-15 22:36:12 +0300
commit130845bac11ecd542587b2d2ce2b2fe87f112f1d (patch)
treeb8b58b35b13065cd391428b5608316b03d05b303 /include/init.h
parentc65abc70fb7212301b70c6ab05ba2aa22c31c69e (diff)
downloadu-boot-130845bac11ecd542587b2d2ce2b2fe87f112f1d.tar.xz
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 'include/init.h')
-rw-r--r--include/init.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/init.h b/include/init.h
index dded1cb871..980be27993 100644
--- a/include/init.h
+++ b/include/init.h
@@ -300,7 +300,15 @@ int board_early_init_r(void);
/* TODO(sjg@chromium.org): Drop this when DM_PCI migration is completed */
void pci_init_board(void);
-void trap_init(unsigned long reloc_addr);
+/**
+ * arch_initr_trap() - Init traps
+ *
+ * Arch specific routine for initializing traps. It is called during the
+ * generic board init sequence, after relocation.
+ *
+ * Return: 0 if OK
+ */
+int arch_initr_trap(void);
/**
* main_loop() - Enter the main loop of U-Boot