mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
We don't actually use the reset functions anywhere, and nothing really
provides them.
This commit is contained in:
@@ -85,6 +85,6 @@ void cpu_setup(void)
|
|||||||
identify_cpu(&cpu_info);
|
identify_cpu(&cpu_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
INIT_FN ( INIT_CPU, cpu_setup, NULL, NULL );
|
INIT_FN ( INIT_CPU, cpu_setup, NULL );
|
||||||
|
|
||||||
#endif /* CONFIG_X86_64 */
|
#endif /* CONFIG_X86_64 */
|
||||||
|
|||||||
@@ -28,4 +28,4 @@ static void gdb_symbol_line ( void ) {
|
|||||||
getkey();
|
getkey();
|
||||||
}
|
}
|
||||||
|
|
||||||
INIT_FN ( INIT_GDBSYM, gdb_symbol_line, NULL, NULL );
|
INIT_FN ( INIT_GDBSYM, gdb_symbol_line, NULL );
|
||||||
|
|||||||
@@ -191,4 +191,4 @@ int timer2_running(void)
|
|||||||
|
|
||||||
#endif /* RTC_CURRTICKS */
|
#endif /* RTC_CURRTICKS */
|
||||||
|
|
||||||
INIT_FN ( INIT_TIMERS, setup_timers, NULL, NULL );
|
INIT_FN ( INIT_TIMERS, setup_timers, NULL );
|
||||||
|
|||||||
@@ -99,4 +99,4 @@ struct console_driver vga_console __console_driver = {
|
|||||||
.disabled = 1,
|
.disabled = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
INIT_FN ( INIT_CONSOLE, video_init, NULL, NULL );
|
INIT_FN ( INIT_CONSOLE, video_init, NULL );
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ struct console_driver btext_console __console_driver = {
|
|||||||
.disabled = 1,
|
.disabled = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
INIT_FN ( INIT_CONSOLE, btext_init, NULL, NULL );
|
INIT_FN ( INIT_CONSOLE, btext_init, NULL );
|
||||||
|
|
||||||
|
|
||||||
//come from linux/drivers/video/font-8x16.c
|
//come from linux/drivers/video/font-8x16.c
|
||||||
|
|||||||
@@ -23,15 +23,6 @@ void call_init_fns ( void ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void call_reset_fns ( void ) {
|
|
||||||
struct init_fn *init_fn;
|
|
||||||
|
|
||||||
for ( init_fn = init_fns; init_fn < init_fns_end ; init_fn++ ) {
|
|
||||||
if ( init_fn->reset )
|
|
||||||
init_fn->reset ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void call_exit_fns ( void ) {
|
void call_exit_fns ( void ) {
|
||||||
struct init_fn *init_fn;
|
struct init_fn *init_fn;
|
||||||
|
|
||||||
|
|||||||
@@ -264,6 +264,6 @@ static void pcmcia_shutdown_all(void) {
|
|||||||
printf("Shutdown of PCMCIA subsystem completed");
|
printf("Shutdown of PCMCIA subsystem completed");
|
||||||
}
|
}
|
||||||
|
|
||||||
INIT_FN ( INIT_PCMCIA, pcmcia_init_all, NULL, pcmcia_shutdown_all );
|
INIT_FN ( INIT_PCMCIA, pcmcia_init_all, pcmcia_shutdown_all );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -250,5 +250,5 @@ struct console_driver serial_console __console_driver = {
|
|||||||
.disabled = 1,
|
.disabled = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
INIT_FN ( INIT_CONSOLE, serial_init, NULL, serial_fini );
|
INIT_FN ( INIT_CONSOLE, serial_init, serial_fini );
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
|
|
||||||
struct init_fn {
|
struct init_fn {
|
||||||
void ( *init ) ( void );
|
void ( *init ) ( void );
|
||||||
void ( *reset ) ( void );
|
|
||||||
void ( *exit ) ( void );
|
void ( *exit ) ( void );
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -44,18 +43,16 @@ struct init_fn {
|
|||||||
#define INIT_RPC 11
|
#define INIT_RPC 11
|
||||||
|
|
||||||
/* Macro for creating an initialisation function table entry */
|
/* Macro for creating an initialisation function table entry */
|
||||||
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
|
#define INIT_FN( init_order, init_func, exit_func ) \
|
||||||
struct init_fn PREFIX_OBJECT(init_fn__) \
|
struct init_fn PREFIX_OBJECT(init_fn__) \
|
||||||
__table ( struct init_fn, init_fn, init_order ) = { \
|
__table ( struct init_fn, init_fn, init_order ) = { \
|
||||||
.init = init_func, \
|
.init = init_func, \
|
||||||
.reset = reset_func, \
|
|
||||||
.exit = exit_func, \
|
.exit = exit_func, \
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Function prototypes */
|
/* Function prototypes */
|
||||||
|
|
||||||
void call_init_fns ( void );
|
void call_init_fns ( void );
|
||||||
void call_reset_fns ( void );
|
|
||||||
void call_exit_fns ( void );
|
void call_exit_fns ( void );
|
||||||
|
|
||||||
#endif /* _GPXE_INIT_H */
|
#endif /* _GPXE_INIT_H */
|
||||||
|
|||||||
@@ -608,7 +608,7 @@ nfssymlink:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
INIT_FN ( INIT_RPC, rpc_init, nfs_reset, nfs_reset );
|
INIT_FN ( INIT_RPC, rpc_init, nfs_reset );
|
||||||
|
|
||||||
struct protocol nfs_protocol __protocol = {
|
struct protocol nfs_protocol __protocol = {
|
||||||
.name = "nfs",
|
.name = "nfs",
|
||||||
|
|||||||
Reference in New Issue
Block a user