mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 01:22:37 +03:00
Separated out initialisation functions from startup/shutdown functions.
This commit is contained in:
@@ -85,6 +85,4 @@ void cpu_setup(void)
|
||||
identify_cpu(&cpu_info);
|
||||
}
|
||||
|
||||
INIT_FN ( INIT_CPU, cpu_setup, NULL );
|
||||
|
||||
#endif /* CONFIG_X86_64 */
|
||||
|
||||
@@ -28,4 +28,6 @@ static void gdb_symbol_line ( void ) {
|
||||
getkey();
|
||||
}
|
||||
|
||||
INIT_FN ( INIT_GDBSYM, gdb_symbol_line, NULL );
|
||||
struct startup_fn gdb_startup_fn __startup_fn ( STARTUP_NORMAL ) = {
|
||||
.startup = gdb_symbol_line,
|
||||
};
|
||||
|
||||
@@ -191,4 +191,6 @@ int timer2_running(void)
|
||||
|
||||
#endif /* RTC_CURRTICKS */
|
||||
|
||||
INIT_FN ( INIT_TIMERS, setup_timers, NULL );
|
||||
struct init_fn timer_init_fn __init_fn ( INIT_NORMAL ) = {
|
||||
.initialise = setup_timers,
|
||||
};
|
||||
|
||||
@@ -99,4 +99,6 @@ struct console_driver vga_console __console_driver = {
|
||||
.disabled = 1,
|
||||
};
|
||||
|
||||
INIT_FN ( INIT_CONSOLE, video_init, NULL );
|
||||
struct init_fn video_init_fn __init_fn ( INIT_EARLY ) = {
|
||||
.initialise = video_init,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user