mirror of https://github.com/ipxe/ipxe.git
[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>pull/17/head
parent
1312c467ee
commit
3102866a7f
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue