Browse Source

[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>
tags/v1.20.1
Michael Brown 10 years ago
parent
commit
3102866a7f
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/core/main.c

+ 3
- 1
src/core/main.c View File

27
  */
27
  */
28
 __asmcall int main ( void ) {
28
 __asmcall int main ( void ) {
29
 
29
 
30
+	/* Perform one-time-only initialisation (e.g. heap) */
31
+	initialise();
32
+
30
 	/* Some devices take an unreasonably long time to initialise */
33
 	/* Some devices take an unreasonably long time to initialise */
31
 	printf ( PRODUCT_SHORT_NAME " initialising devices..." );
34
 	printf ( PRODUCT_SHORT_NAME " initialising devices..." );
32
-	initialise();
33
 	startup();
35
 	startup();
34
 	printf ( "ok\n" );
36
 	printf ( "ok\n" );
35
 
37
 

Loading…
Cancel
Save