mirror of
https://github.com/ipxe/ipxe
synced 2026-04-04 03:00:20 +03:00
[init] Show initialisation function names in debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -177,6 +177,7 @@ static void fnrec_init ( void ) {
|
||||
}
|
||||
|
||||
struct init_fn fnrec_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "fnrec",
|
||||
.initialise = fnrec_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user