diff options
author | Marvin Borner | 2020-08-22 12:54:16 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-22 12:54:16 +0200 |
commit | 593c80e99342df5e1147b3c0fc893f77ec6f00d5 (patch) | |
tree | d56d562050da0cf2b7f60df6d0b9f389000cd0bf /kernel/inc/proc.h | |
parent | cd6b20886ad80112c1589bdabd46e39b1876a162 (diff) |
Added quantum counter
Diffstat (limited to 'kernel/inc/proc.h')
-rw-r--r-- | kernel/inc/proc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h index 76eeb4b..8f93e43 100644 --- a/kernel/inc/proc.h +++ b/kernel/inc/proc.h @@ -6,17 +6,16 @@ #include <def.h> #include <interrupts.h> +#define PROC_QUANTUM 42 // Milliseconds + #define EFLAGS_ALWAYS 0x2 // Always one #define EFLAGS_INTERRUPTS 0x200 // Enable interrupts #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 state { PROC_RUNNING, PROC_ASLEEP, PROC_ERROR }; - struct proc { u32 pid; - enum state state; char name[32]; struct regs regs; u32 event; |