mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
[init] Show initialisation function names in debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -250,6 +250,7 @@ static void cpuid_settings_init ( void ) {
|
||||
|
||||
/** CPUID settings initialiser */
|
||||
struct init_fn cpuid_settings_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "cpuid",
|
||||
.initialise = cpuid_settings_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -86,5 +86,6 @@ static void debugcon_init ( void ) {
|
||||
* Debug port console initialisation function
|
||||
*/
|
||||
struct init_fn debugcon_init_fn __init_fn ( INIT_EARLY ) = {
|
||||
.name = "debugcon",
|
||||
.initialise = debugcon_init,
|
||||
};
|
||||
|
||||
@@ -44,5 +44,6 @@ static void pci_autoboot_init ( void ) {
|
||||
|
||||
/** PCI autoboot device initialisation function */
|
||||
struct init_fn pci_autoboot_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "autoboot",
|
||||
.initialise = pci_autoboot_init,
|
||||
};
|
||||
|
||||
@@ -109,5 +109,6 @@ struct console_driver vga_console __console_driver = {
|
||||
};
|
||||
|
||||
struct init_fn video_init_fn __init_fn ( INIT_EARLY ) = {
|
||||
.name = "video",
|
||||
.initialise = video_init,
|
||||
};
|
||||
|
||||
@@ -74,5 +74,6 @@ static void cachedhcp_init ( void ) {
|
||||
|
||||
/** Cached DHCPACK initialisation function */
|
||||
struct init_fn cachedhcp_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "cachedhcp",
|
||||
.initialise = cachedhcp_init,
|
||||
};
|
||||
|
||||
@@ -288,6 +288,7 @@ static void int13con_init ( void ) {
|
||||
* INT13 console initialisation function
|
||||
*/
|
||||
struct init_fn int13con_init_fn __init_fn ( INIT_CONSOLE ) = {
|
||||
.name = "int13con",
|
||||
.initialise = int13con_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -191,5 +191,6 @@ static void pcicloud_init ( void ) {
|
||||
|
||||
/** Cloud VM PCI configuration space access initialisation function */
|
||||
struct init_fn pcicloud_init_fn __init_fn ( INIT_EARLY ) = {
|
||||
.name = "pcicloud",
|
||||
.initialise = pcicloud_init,
|
||||
};
|
||||
|
||||
@@ -257,6 +257,7 @@ static void pxe_init_structures ( void ) {
|
||||
|
||||
/** PXE structure initialiser */
|
||||
struct init_fn pxe_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "pxe",
|
||||
.initialise = pxe_init_structures,
|
||||
};
|
||||
|
||||
|
||||
@@ -200,6 +200,7 @@ static void guestinfo_init ( void ) {
|
||||
|
||||
/** GuestInfo settings initialiser */
|
||||
struct init_fn guestinfo_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "guestinfo",
|
||||
.initialise = guestinfo_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -134,5 +134,6 @@ static void vmconsole_init ( void ) {
|
||||
* VMware logfile console initialisation function
|
||||
*/
|
||||
struct init_fn vmconsole_init_fn __init_fn ( INIT_CONSOLE ) = {
|
||||
.name = "vmconsole",
|
||||
.initialise = vmconsole_init,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -210,6 +210,7 @@ static void certstore_init ( void ) {
|
||||
|
||||
/** Certificate store initialisation function */
|
||||
struct init_fn certstore_init_fn __init_fn ( INIT_LATE ) = {
|
||||
.name = "certstore",
|
||||
.initialise = certstore_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -369,6 +369,7 @@ static void des_init ( void ) {
|
||||
|
||||
/** Initialisation function */
|
||||
struct init_fn des_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "des",
|
||||
.initialise = des_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -334,6 +334,7 @@ static void x25519_init_constants ( void ) {
|
||||
|
||||
/** Initialisation function */
|
||||
struct init_fn x25519_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "x25519",
|
||||
.initialise = x25519_init_constants,
|
||||
};
|
||||
|
||||
|
||||
@@ -125,5 +125,6 @@ static void pci_settings_init ( void ) {
|
||||
|
||||
/** PCI device settings initialiser */
|
||||
struct init_fn pci_settings_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "pci",
|
||||
.initialise = pci_settings_init,
|
||||
};
|
||||
|
||||
@@ -173,5 +173,6 @@ static void usb_settings_init ( void ) {
|
||||
|
||||
/** USB device settings initialiser */
|
||||
struct init_fn usb_settings_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "usb",
|
||||
.initialise = usb_settings_init,
|
||||
};
|
||||
|
||||
@@ -259,5 +259,6 @@ static void chained_init ( void ) {
|
||||
|
||||
/** EFI chainloaded-device-only initialisation function */
|
||||
struct init_fn chained_init_fn __init_fn ( INIT_LATE ) = {
|
||||
.name = "chained",
|
||||
.initialise = chained_init,
|
||||
};
|
||||
|
||||
@@ -80,5 +80,6 @@ static void embedded_init ( void ) {
|
||||
|
||||
/** Embedded image initialisation function */
|
||||
struct init_fn embedded_init_fn __init_fn ( INIT_LATE ) = {
|
||||
.name = "embedded",
|
||||
.initialise = embedded_init,
|
||||
};
|
||||
|
||||
@@ -12,6 +12,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
* call to initialise().
|
||||
*/
|
||||
struct init_fn {
|
||||
const char *name;
|
||||
void ( * initialise ) ( void );
|
||||
};
|
||||
|
||||
|
||||
@@ -178,6 +178,7 @@ static void efi_cacert_init ( void ) {
|
||||
|
||||
/** EFI CA certificates initialisation function */
|
||||
struct init_fn efi_cacert_init_fn __init_fn ( INIT_LATE ) = {
|
||||
.name = "eficacert",
|
||||
.initialise = efi_cacert_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -448,5 +448,6 @@ static void efi_console_init ( void ) {
|
||||
* EFI console initialisation function
|
||||
*/
|
||||
struct init_fn efi_console_init_fn __init_fn ( INIT_EARLY ) = {
|
||||
.name = "eficonsole",
|
||||
.initialise = efi_console_init,
|
||||
};
|
||||
|
||||
@@ -77,6 +77,7 @@ static void efi_fdt_init ( void ) {
|
||||
|
||||
/** EFI Flattened Device Tree initialisation function */
|
||||
struct init_fn efi_fdt_init_fn __init_fn ( INIT_EARLY ) = {
|
||||
.name = "efifdt",
|
||||
.initialise = efi_fdt_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -232,5 +232,6 @@ static void efivars_init ( void ) {
|
||||
|
||||
/** EFI variable settings initialiser */
|
||||
struct init_fn efivars_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "efivars",
|
||||
.initialise = efivars_init,
|
||||
};
|
||||
|
||||
@@ -98,6 +98,7 @@ static void efi_init_application ( void ) {
|
||||
|
||||
/** EFI application initialisation function */
|
||||
struct init_fn efi_init_application_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "efi",
|
||||
.initialise = efi_init_application,
|
||||
};
|
||||
|
||||
|
||||
@@ -200,6 +200,7 @@ static void smbios_init ( void ) {
|
||||
|
||||
/** SMBIOS settings initialiser */
|
||||
struct init_fn smbios_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "smbios",
|
||||
.initialise = smbios_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -429,6 +429,7 @@ static void netdev_redirect_settings_init ( void ) {
|
||||
|
||||
/** "netX" settings initialiser */
|
||||
struct init_fn netdev_redirect_settings_init_fn __init_fn ( INIT_LATE ) = {
|
||||
.name = "netX",
|
||||
.initialise = netdev_redirect_settings_init,
|
||||
};
|
||||
|
||||
|
||||
@@ -278,5 +278,6 @@ static void bofm_test_init ( void ) {
|
||||
|
||||
/** BOFM test initialisation function */
|
||||
struct init_fn bofm_test_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.name = "bofm",
|
||||
.initialise = bofm_test_init,
|
||||
};
|
||||
|
||||
@@ -180,5 +180,6 @@ static void test_init ( void ) {
|
||||
|
||||
/** Self-test initialisation function */
|
||||
struct init_fn test_init_fn __init_fn ( INIT_EARLY ) = {
|
||||
.name = "test",
|
||||
.initialise = test_init,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user