diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-03 16:06:41 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-03 16:06:41 -0800 |
commit | addaeaeb3949d576c4e0eb5cfc133b7c3bcfa8fa (patch) | |
tree | 2ffea726dc494e87ecc9f506bc6a2bc9242730e3 /gpxe/src/include/gpxe/process.h | |
parent | 5c0f48e49f8d7d084810ecf0b98a76aaebb44835 (diff) | |
parent | e7a5f95432132c8fc8f8ede39fda1d368002ddd8 (diff) | |
download | syslinux.git-addaeaeb3949d576c4e0eb5cfc133b7c3bcfa8fa.tar.gz syslinux.git-addaeaeb3949d576c4e0eb5cfc133b7c3bcfa8fa.tar.xz syslinux.git-addaeaeb3949d576c4e0eb5cfc133b7c3bcfa8fa.zip |
Merge branch 'master' into i915res
Diffstat (limited to 'gpxe/src/include/gpxe/process.h')
-rw-r--r-- | gpxe/src/include/gpxe/process.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gpxe/src/include/gpxe/process.h b/gpxe/src/include/gpxe/process.h index 8d9b109a..944858d7 100644 --- a/gpxe/src/include/gpxe/process.h +++ b/gpxe/src/include/gpxe/process.h @@ -7,6 +7,8 @@ * */ +FILE_LICENCE ( GPL2_OR_LATER ); + #include <gpxe/list.h> #include <gpxe/refcnt.h> #include <gpxe/tables.h> @@ -45,6 +47,7 @@ static inline __attribute__ (( always_inline )) void process_init_stopped ( struct process *process, void ( * step ) ( struct process *process ), struct refcnt *refcnt ) { + INIT_LIST_HEAD ( &process->list ); process->step = step; process->refcnt = refcnt; } @@ -63,13 +66,15 @@ process_init ( struct process *process, process_add ( process ); } +/** Permanent process table */ +#define PERMANENT_PROCESSES __table ( struct process, "processes" ) + /** * 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 ) +#define __permanent_process __table_entry ( PERMANENT_PROCESSES, 01 ) #endif /* _GPXE_PROCESS_H */ |