From d8aca3ff2501f9a77e22e5afb7a30380aed205af Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 16 Oct 2026 16:42:22 -0400 Subject: remove explicit framebuffer in kernel. reduce locking in syscalls --- arch/x86_64/lib/printf.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 arch/x86_64/lib/printf.c (limited to 'arch/x86_64/lib/printf.c') diff --git a/arch/x86_64/lib/printf.c b/arch/x86_64/lib/printf.c deleted file mode 100644 index db47f6b..0000000 --- a/arch/x86_64/lib/printf.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "../hal/serial_com.h" -#include "lib/printf.h" -#include "lib/virtterm.h" -#include "proc/init.h" -#include "sys/objdir.h" - -int -kvprintf(const char *fmt, va_list ap) -{ - char buffer[256] = { 0 }; - int r = vsnprintf(buffer, 256, fmt, ap); - int wlen = (r > 256 ? 256 : r); - - { - jove_owned_obj_t *serial_obj = objdir_getlocal(_rootdir_obj, INIT_ROOTDIR_SERIAL_COM_I); - serial_com_write(serial_obj, buffer, wlen); - obj_release(serial_obj); - - jove_owned_obj_t *vt_obj = objdir_getlocal(_rootdir_obj, INIT_ROOTDIR_VIRTTERM_I); - vt_write(vt_obj, buffer, wlen); - obj_release(vt_obj); - } - - return r; -} -- cgit v1.2.3