aboutsummaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-08-06 20:02:44 +0200
committerMarvin Borner2020-08-06 20:02:44 +0200
commit9dbf8131d6aaff1617ef2bc7ebf54838f808688d (patch)
treed578b3a54a509b840a753c9c29a37dd37b2b3f5d /src/inc
parent1272295d0c611f04128f9e388d5a0468dc64dae0 (diff)
Fixed messed up registers
Diffstat (limited to 'src/inc')
-rw-r--r--src/inc/load.h6
-rw-r--r--src/inc/proc.h1
2 files changed, 6 insertions, 1 deletions
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 <proc.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
+
void bin_load(char *path, struct proc *proc);
#endif
diff --git a/src/inc/proc.h b/src/inc/proc.h
index bc3d115..dc8b9e9 100644
--- a/src/inc/proc.h
+++ b/src/inc/proc.h
@@ -17,7 +17,6 @@ struct proc {
};
void proc_init();
-void proc_jump(struct proc *proc);
struct proc *proc_make();
#endif