mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 16:01:38 +03:00
Use a linker-table based system to automatically mark and start up
permanent processes, rather than requiring each one to have its own initialisation function.
This commit is contained in:
@@ -448,13 +448,6 @@ static void net_step ( struct process *process __unused ) {
|
||||
}
|
||||
|
||||
/** Networking stack process */
|
||||
static struct process net_process = {
|
||||
struct process net_process __permanent_process = {
|
||||
.step = net_step,
|
||||
};
|
||||
|
||||
/** Initialise the networking stack process */
|
||||
static void init_net ( void ) {
|
||||
process_add ( &net_process );
|
||||
}
|
||||
|
||||
INIT_FN ( INIT_PROCESS, init_net, NULL, NULL );
|
||||
|
||||
Reference in New Issue
Block a user