Simple file IO with the ioctl syscall

This commit is contained in:
2025-09-05 19:56:27 +02:00
parent f42c4b7e44
commit fb5e88a175
16 changed files with 299 additions and 6 deletions

View File

@ -4,6 +4,7 @@
#include "kprintf.h"
#include "processctl.h"
#include "sysdefs/syscall.h"
#include "ioctl.h"
int32_t SYSCALL1(sys_debugprint, string) {
char *p = (char *)string;
@ -14,4 +15,5 @@ int32_t SYSCALL1(sys_debugprint, string) {
SyscallFn SYSCALL_TABLE[SYSCALLS_MAX] = {
[SYS_DEBUGPRINT] = &sys_debugprint,
[SYS_PROCESSCTL] = &sys_processctl,
[SYS_IOCTL] = &sys_ioctl,
};