diff options
author | Marvin Borner | 2020-08-07 21:14:20 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-07 21:14:20 +0200 |
commit | 79f2fa136f26a0b87917336e089485712ee49bd6 (patch) | |
tree | ccf19f23e11191e6e71d89921913d4edb00a6042 /src/inc/proc.h | |
parent | 5e4374f938d259903fa21cb62b3f3b77b126198b (diff) |
Dual-tasking works.
I don't know why triple-tasking doesn't though...
Diffstat (limited to 'src/inc/proc.h')
-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 }; |