summaryrefslogtreecommitdiffstats
path: root/sys/syscall_vtt.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-10-16 16:42:22 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-10-16 16:42:22 -0400
commitd8aca3ff2501f9a77e22e5afb7a30380aed205af (patch)
treea27db1749a35aea07317406f170a2d9b2a799ce7 /sys/syscall_vtt.c
parent548506392b789f58b1556a6ffca917441e1d89fd (diff)
downloadjove-kernel-d8aca3ff2501f9a77e22e5afb7a30380aed205af.tar.gz
jove-kernel-d8aca3ff2501f9a77e22e5afb7a30380aed205af.tar.bz2
jove-kernel-d8aca3ff2501f9a77e22e5afb7a30380aed205af.zip
remove explicit framebuffer in kernel. reduce locking in syscalls
Diffstat (limited to 'sys/syscall_vtt.c')
-rw-r--r--sys/syscall_vtt.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/syscall_vtt.c b/sys/syscall_vtt.c
deleted file mode 100644
index dad05ba..0000000
--- a/sys/syscall_vtt.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "jove.h"
-#include "lib/printf.h"
-#include "lib/virtterm.h"
-#include "syscall.h"
-
-static int
-s_syscall_vtt_write(
- jove_owned_obj_t *vtt,
- size_t payload_bytes,
- void *payload_data)
-{
- size_t bytes_needed = sizeof(struct syscall_generic_write);
- CHECK_TOOSMALL(bytes_needed, payload_bytes, "Message is too small for this syscall!");
-
- struct syscall_generic_write *payload = payload_data;
- bytes_needed += payload->len * 2;
- CHECK_TOOSMALL(bytes_needed, payload_bytes, "Message is too small for write buffer!");
-
- return vt_write(vtt, payload->data, payload->len);
-}
-
-int
-_syscall_handle_vtt(syscall_context_t *ctx)
-{
-
- switch(ctx->header->callid) {
- case SYSCALL_VTT_WRITE:
- return s_syscall_vtt_write(ctx->target.obj, ctx->bytes_left, ctx->payload);
- default:
- klogf("vtt object does not support syscall %i\n", ctx->header->callid);
- return -EBADCALL;
- }
-}