summaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/main.c b/kernel/main.c
index 458558a..5c2c5e8 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -1,9 +1,9 @@
#include <kernel/gdt.h>
+#include <kernel/mem.h>
+#include <kernel/proc.h>
#include <kernel/tty.h>
#include <platform/sysenter.h>
-extern void stack_top;
-
void r3_test();
void kmain()
@@ -11,9 +11,12 @@ void kmain()
tty_clear();
gdt_init();
sysenter_setup();
+ mem_init();
- tty_const("jumping to ring3...");
- sysexit(r3_test, &stack_top);
+ tty_const("creating process...");
+ struct process *proc = process_new(r3_test);
+ tty_const("switching...");
+ process_switch(proc);
}
void r3_test() {