diff options
Diffstat (limited to 'include/kernel/sched.h')
| -rw-r--r-- | include/kernel/sched.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/kernel/sched.h b/include/kernel/sched.h index 42b5b15..ac508b9 100644 --- a/include/kernel/sched.h +++ b/include/kernel/sched.h @@ -1,6 +1,7 @@ #ifndef _SCHED_H #define _SCHED_H +#include <signal.h> #include <stdint.h> #include <unistd.h> @@ -39,9 +40,17 @@ struct tss_struct { uint32_t io_map; } __attribute__((packed)); +/* + * WARNING: do not modify this structure + * unless the offsets defined in traps.s + * are updated + */ + struct task_struct { pid_t pid; int state; + uint32_t signal; + void *sig_handlers[NRSIG]; struct tss_struct tss; } __attribute__((packed)); |
