From 8625003ed7f688a62988f03cc6987574b9d591d2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 24 Aug 2021 16:49:23 +0200 Subject: remove _syscall_debug_log, as it's not needed anymore --- src/kernel/syscalls.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/kernel/syscalls.c') diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 015bb17..9e64b01 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -145,14 +145,6 @@ int _syscall_fd_close(fd_t fd) { return fdop_dispatch(FDOP_CLOSE, &process_current->fds[fd], 0, 0); } -int _syscall_debuglog(const char *msg, size_t len) { - struct virt_iter iter; - virt_iter_new(&iter, (void*)msg, len, process_current->pages, true, false); - while (virt_iter_next(&iter)) - tty_write(iter.frag, iter.frag_len); - return iter.prior; -} - int syscall_handler(int num, int a, int b, int c) { switch (num) { case _SYSCALL_EXIT: @@ -171,8 +163,6 @@ int syscall_handler(int num, int a, int b, int c) { return _syscall_fd_write(a, (void*)b, c); case _SYSCALL_FD_CLOSE: return _syscall_fd_close(a); - case _SYSCALL_DEBUGLOG: - return _syscall_debuglog((void*)a, b); default: tty_const("unknown syscall "); panic(); -- cgit v1.2.3