aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-08-22 15:08:57 +0200
committerMarvin Borner2020-08-22 15:08:57 +0200
commitd748a6f54ce7af45afde487936d5a02cb2a91b05 (patch)
tree1ec6b0c8b3576fa15f21a305dfcad5196aac6e01 /kernel/inc
parent00a64ff4675b4c1e22d6b4856e1f6b7c04ed96d8 (diff)
Added event resolving
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/proc.h5
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();