summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
authordzwdz2021-08-09 21:21:56 +0200
committerdzwdz2021-08-09 21:21:56 +0200
commitab1843f5de80752ba40fb1ea5075eb7e3dad8171 (patch)
tree9c01d71eef5abc6c5d66c1110e8a7c6ccb0c0281 /src/kernel/syscalls.c
parent5836c7df10d48b9c3241f2fbdb9ea3a37313a6fd (diff)
rename `log_` to `tty_`, `tty_` to `vga_`
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index ece21db..47f8b2b 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -11,7 +11,7 @@ _Noreturn void _syscall_exit(const char *msg, size_t len) {
if (process_current)
process_switch(process_current);
- log_const("last process returned. ");
+ tty_const("last process returned. ");
panic();
}
@@ -31,7 +31,7 @@ int _syscall_debuglog(const char *msg, size_t len) {
if (((uintptr_t)msg & PAGE_MASK) + len > PAGE_SIZE)
panic(); // just in case I made an off by 1 error
- log_write(phys, len);
+ tty_write(phys, len);
return len;
}
@@ -44,7 +44,7 @@ int syscall_handler(int num, int a, int b, int c) {
case _SYSCALL_DEBUGLOG:
return _syscall_debuglog((void*)a, b);
default:
- log_const("unknown syscall ");
+ tty_const("unknown syscall ");
panic();
}
}