diff options
Diffstat (limited to 'src/inc/proc.h')
-rw-r--r-- | src/inc/proc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inc/proc.h b/src/inc/proc.h index dc8b9e9..8231810 100644 --- a/src/inc/proc.h +++ b/src/inc/proc.h @@ -6,17 +6,25 @@ #include <def.h> #include <interrupts.h> +#define EFLAGS_ALWAYS 0x2 // Always one +#define EFLAGS_INTERRUPTS 0x200 // Enable interrupts + +#define GDT_DATA_OFFSET 0x10 // Data segment offset in GDT +#define GDT_CODE_OFFSET 0x8 // Code segment offset in GDT + enum state { PROC_RUNNING, PROC_ASLEEP }; struct proc { u32 pid; enum state state; + char name[32]; struct regs regs; /* struct proc *parent; */ struct proc *next; }; void proc_init(); +void proc_print(); struct proc *proc_make(); #endif |