diff options
Diffstat (limited to 'src/inc')
-rw-r--r-- | src/inc/proc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inc/proc.h b/src/inc/proc.h index 8231810..39ba704 100644 --- a/src/inc/proc.h +++ b/src/inc/proc.h @@ -9,8 +9,8 @@ #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 +#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 }; |