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:
Michael Brown
2007-07-03 20:09:14 +01:00
parent 4bcfe7507b
commit fd86c819ba
6 changed files with 35 additions and 18 deletions

View File

@@ -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 );