summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
diff options
context:
space:
mode:
authordzwdz2021-07-10 19:36:50 +0200
committerdzwdz2021-07-10 19:36:50 +0200
commita90f613e50b1677b03d19793039e0769a09caf9f (patch)
tree21b10fb5f924d383d13e711b23f2c0b5181feabf /src/kernel/main.c
parente1a46050ac834b0d1a125847a117edb56d53f32a (diff)
abstract away logging
Now, the kernel only interfaces with the architecture dependent stuff via functions declared in generic.h. I'll write a linter enforcing this soon.
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r--src/kernel/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index aa67d7c..d2d7dda 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -6,17 +6,17 @@
void r3_test();
void kmain() {
- tty_const("mem...");
+ log_const("mem...");
mem_init();
- tty_const("creating process...");
+ log_const("creating process...");
struct process *proc = process_new(r3_test);
- tty_const("switching...");
+ log_const("switching...");
process_switch(proc);
}
void r3_test() {
- tty_const("ok");
+ log_const("ok");
asm("cli");
panic();
}