From: Simon Glass Date: Sat, 28 Dec 2019 17:44:39 +0000 (-0700) Subject: common: Move main_loop() to init.h X-Git-Tag: v2020.04-rc1~6^2~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=930c57ed9654f9fd53fe9bb0fc7d46d2e0317bbd;p=oweals%2Fu-boot.git common: Move main_loop() to init.h Move this function out of common.h and into a better place. Signed-off-by: Simon Glass Reviewed-by: Simon Goldschmidt --- diff --git a/common/board_r.c b/common/board_r.c index e711de64b5..e7c2594296 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #if defined(CONFIG_CMD_KGDB) #include diff --git a/common/main.c b/common/main.c index a94df7ae04..ec8994ad45 100644 --- a/common/main.c +++ b/common/main.c @@ -12,6 +12,7 @@ #include #include #include +#include #include /* diff --git a/include/common.h b/include/common.h index 8ac5fca9ee..c35af99f02 100644 --- a/include/common.h +++ b/include/common.h @@ -63,9 +63,6 @@ void hang (void) __attribute__ ((noreturn)); #include -/* common/main.c */ -void main_loop (void); - int checkflash(void); int checkdram(void); extern u8 __dtb_dt_begin[]; /* embedded device tree blob */ diff --git a/include/init.h b/include/init.h index 970a39a6a0..a5a2c79a90 100644 --- a/include/init.h +++ b/include/init.h @@ -221,6 +221,13 @@ void pci_init_board(void); void trap_init(unsigned long reloc_addr); +/** + * main_loop() - Enter the main loop of U-Boot + * + * This normally runs the command line. + */ +void main_loop(void); + #endif /* __ASSEMBLY__ */ /* Put only stuff here that the assembler can digest */