david/ipxe
Archived
1
0

[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>
This commit is contained in:
Michael Brown 2013-11-18 14:07:37 +00:00
parent 1312c467ee
commit 3102866a7f

View File

@ -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" );