summaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
authordzwdz2021-06-25 16:27:19 +0200
committerdzwdz2021-06-25 16:27:19 +0200
commit654ca8603381ffa385350242cfb96906cf612279 (patch)
tree9fc9b3ff19932c0061efe96c84ba780a6d5b9e0f /kernel/main.c
parentf60d40f3bf4dfe8ed6f63a27367d323319a4ef97 (diff)
tty_const
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/main.c b/kernel/main.c
index e63ca14..458558a 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -12,13 +12,13 @@ void kmain()
gdt_init();
sysenter_setup();
- tty_write("user...", 7);
+ tty_const("jumping to ring3...");
sysexit(r3_test, &stack_top);
}
void r3_test() {
- tty_write("in ring3", 8);
+ tty_const("ok");
asm("cli"); // privileged instruction, should cause a GP
- tty_write(" oh no", 6); // shouldn't happen
+ tty_const(" this shouldn't happen");
for (;;) {}
}