summaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c
index 74ba441..93647f5 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -17,6 +17,15 @@ void main() {
asm volatile("sti");
+ asm volatile(
+ "push $0x23\n"
+ "push $entry_stack_top\n"
+ "pushf\n"
+ "push $0x1b\n"
+ "push $0x0010a000\n"
+ "iret\n"
+ );
+
printf("Halting.\n");
asm volatile(