From 9dbf8131d6aaff1617ef2bc7ebf54838f808688d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 6 Aug 2020 20:02:44 +0200 Subject: Fixed messed up registers --- src/inc/load.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inc/load.h') diff --git a/src/inc/load.h b/src/inc/load.h index 60fecf9..697248e 100644 --- a/src/inc/load.h +++ b/src/inc/load.h @@ -5,6 +5,12 @@ #include +#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 + void bin_load(char *path, struct proc *proc); #endif -- cgit v1.2.3