diff options
author | dzwdz | 2021-08-24 16:49:23 +0200 |
---|---|---|
committer | dzwdz | 2021-08-24 16:49:23 +0200 |
commit | 8625003ed7f688a62988f03cc6987574b9d591d2 (patch) | |
tree | 999769ef7e8d8a2eefc3b5cdced4fc2c32f4f46b /src/kernel/syscalls.c | |
parent | 9958bdacfa51b5d8eee386b863cdcc2d76f44f4a (diff) |
remove _syscall_debug_log, as it's not needed anymore
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 10 |
1 files changed, 0 insertions, 10 deletions
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(); |