summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorMichael Brown2013-11-18 15:07:37 +0100
committerMichael Brown2013-11-27 12:27:50 +0100
commit3102866a7f17cc0e0bd89bf6d2690d4a39c1f546 (patch)
tree005ef958be5f5eace6a383cfa65910a6e41561e6 /src/core/main.c
parent[test] Include failing code within failed test result output (diff)
downloadipxe-3102866a7f17cc0e0bd89bf6d2690d4a39c1f546.tar.gz
ipxe-3102866a7f17cc0e0bd89bf6d2690d4a39c1f546.tar.xz
ipxe-3102866a7f17cc0e0bd89bf6d2690d4a39c1f546.zip
[main] Defer "initialising devices" message until initialising devices
Allow the "initialising devices" message to show up on consoles which require initialisation, by deferring it until after initialise() has completed. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 8ad912d4..c55ca26c 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -27,9 +27,11 @@ FILE_LICENCE ( GPL2_OR_LATER );
*/
__asmcall int main ( void ) {
+ /* Perform one-time-only initialisation (e.g. heap) */
+ initialise();
+
/* Some devices take an unreasonably long time to initialise */
printf ( PRODUCT_SHORT_NAME " initialising devices..." );
- initialise();
startup();
printf ( "ok\n" );