diff options
author | Marvin Borner | 2020-08-22 15:08:57 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-22 15:08:57 +0200 |
commit | d748a6f54ce7af45afde487936d5a02cb2a91b05 (patch) | |
tree | 1ec6b0c8b3576fa15f21a305dfcad5196aac6e01 /kernel/inc/proc.h | |
parent | 00a64ff4675b4c1e22d6b4856e1f6b7c04ed96d8 (diff) |
Added event resolving
Diffstat (limited to 'kernel/inc/proc.h')
-rw-r--r-- | kernel/inc/proc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h index 7e13652..48bd7d7 100644 --- a/kernel/inc/proc.h +++ b/kernel/inc/proc.h @@ -16,10 +16,14 @@ #define GDT_USER_CODE_OFFSET 0x1b // User code segment offset in GDT (with ring3 mask) #define GDT_USER_DATA_OFFSET 0x23 // User data segment offset in GDT (with ring3 mask) +enum proc_state { PROC_DEFAULT, PROC_IN_EVENT, PROC_RESOLVED }; + struct proc { u32 pid; char name[32]; struct regs regs; + struct regs regs_backup; + enum proc_state state; struct list *events; }; @@ -31,6 +35,7 @@ struct proc_event { void proc_init(); void proc_print(); struct proc *proc_current(); +void proc_resolve(struct proc *proc); void proc_exit(struct proc *proc, int status); struct proc *proc_make(); |