summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMarty Connor2007-07-03 22:02:26 +0200
committerMarty Connor2007-07-03 22:02:26 +0200
commit6be8cdbb6f2a003aed4b06ce15d296f2d9e0ebf2 (patch)
tree46830720996e606b842656b1b2ba52cf6c6947b7 /src/include
parentWarnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot (diff)
parentUse a linker-table based system to automatically mark and start up (diff)
downloadipxe-6be8cdbb6f2a003aed4b06ce15d296f2d9e0ebf2.tar.gz
ipxe-6be8cdbb6f2a003aed4b06ce15d296f2d9e0ebf2.tar.xz
ipxe-6be8cdbb6f2a003aed4b06ce15d296f2d9e0ebf2.zip
Merge branch 'master' of /pub/scm/gpxe
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/init.h1
-rw-r--r--src/include/gpxe/process.h11
2 files changed, 11 insertions, 1 deletions
diff --git a/src/include/gpxe/init.h b/src/include/gpxe/init.h
index bd4cd97d4..b13674ec7 100644
--- a/src/include/gpxe/init.h
+++ b/src/include/gpxe/init.h
@@ -42,7 +42,6 @@ struct init_fn {
#define INIT_LOADBUF 08
#define INIT_PCMCIA 09
#define INIT_RPC 11
-#define INIT_PROCESS 12
/* Macro for creating an initialisation function table entry */
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
diff --git a/src/include/gpxe/process.h b/src/include/gpxe/process.h
index c0837fa4f..595787c0f 100644
--- a/src/include/gpxe/process.h
+++ b/src/include/gpxe/process.h
@@ -9,6 +9,7 @@
#include <gpxe/list.h>
#include <gpxe/refcnt.h>
+#include <gpxe/tables.h>
/** A process */
struct process {
@@ -33,6 +34,7 @@ struct process {
extern void process_add ( struct process *process );
extern void process_del ( struct process *process );
extern void step ( void );
+extern void init_processes ( void );
/**
* Initialise process without adding to process list
@@ -62,4 +64,13 @@ process_init ( struct process *process,
process_add ( process );
}
+/**
+ * Declare a permanent process
+ *
+ * Permanent processes will be automatically added to the process list
+ * at initialisation time.
+ */
+#define __permanent_process \
+ __table ( struct process, processes, 01 )
+
#endif /* _GPXE_PROCESS_H */