diff options
| author | Simon Glass <sjg@chromium.org> | 2019-12-28 10:44:39 -0700 |
|---|---|---|
| committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-01-24 23:06:47 +0530 |
| commit | 930c57ed9654f9fd53fe9bb0fc7d46d2e0317bbd (patch) | |
| tree | fea05a6475b1dce7e4a00001eae4ced1af8e041a /include | |
| parent | 7099d71d87813f997b58a3d8107c3a615fd37669 (diff) | |
| download | u-boot-930c57ed9654f9fd53fe9bb0fc7d46d2e0317bbd.tar.gz u-boot-930c57ed9654f9fd53fe9bb0fc7d46d2e0317bbd.tar.xz u-boot-930c57ed9654f9fd53fe9bb0fc7d46d2e0317bbd.zip | |
common: Move main_loop() to init.h
Move this function out of common.h and into a better place.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 3 | ||||
| -rw-r--r-- | include/init.h | 7 |
2 files changed, 7 insertions, 3 deletions
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 <display_options.h> -/* 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 */ |
