[init] Show initialisation function names in debug messages

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-07-15 14:08:15 +01:00
parent 7ac4b3c6f1
commit 1e3fb1b37e
36 changed files with 38 additions and 1 deletions

View File

@@ -156,5 +156,6 @@ static void acpi_settings_init ( void ) {
/** ACPI settings initialiser */
struct init_fn acpi_settings_init_fn __init_fn ( INIT_NORMAL ) = {
.name = "acpi",
.initialise = acpi_settings_init,
};

View File

@@ -177,6 +177,7 @@ static void fnrec_init ( void ) {
}
struct init_fn fnrec_init_fn __init_fn ( INIT_NORMAL ) = {
.name = "fnrec",
.initialise = fnrec_init,
};

View File

@@ -53,8 +53,10 @@ void initialise ( void ) {
struct init_fn *init_fn;
/* Call registered initialisation functions */
for_each_table_entry ( init_fn, INIT_FNS )
for_each_table_entry ( init_fn, INIT_FNS ) {
DBGC ( colour, "INIT initialising %s...\n", init_fn->name );
init_fn->initialise ();
}
}
/**

View File

@@ -765,6 +765,7 @@ static void init_heap ( void ) {
/** Memory allocator initialisation function */
struct init_fn heap_init_fn __init_fn ( INIT_EARLY ) = {
.name = "heap",
.initialise = init_heap,
};

View File

@@ -243,6 +243,7 @@ static void memmap_settings_init ( void ) {
/** Memory map settings initialiser */
struct init_fn memmap_settings_init_fn __init_fn ( INIT_NORMAL ) = {
.name = "memmap",
.initialise = memmap_settings_init,
};

View File

@@ -133,5 +133,6 @@ static void init_processes ( void ) {
/** Process initialiser */
struct init_fn process_init_fn __init_fn ( INIT_NORMAL ) = {
.name = "process",
.initialise = init_processes,
};

View File

@@ -180,6 +180,7 @@ static void serial_shutdown ( int flags __unused ) {
/** Serial console initialisation function */
struct init_fn serial_console_init_fn __init_fn ( INIT_CONSOLE ) = {
.name = "serial",
.initialise = serial_init,
};

View File

@@ -2819,5 +2819,6 @@ static void builtin_init ( void ) {
/** Built-in settings initialiser */
struct init_fn builtin_init_fn __init_fn ( INIT_NORMAL ) = {
.name = "builtin",
.initialise = builtin_init,
};

View File

@@ -170,6 +170,7 @@ static void timer_probe ( void ) {
/** Timer initialisation function */
struct init_fn timer_init_fn __init_fn ( INIT_EARLY ) = {
.name = "timer",
.initialise = timer_probe,
};