Add time() syscall

This commit is contained in:
2025-10-16 14:15:05 +02:00
parent 48231931bd
commit 702f0ddf87
6 changed files with 41 additions and 11 deletions

View File

@ -11,6 +11,7 @@
#include "proc.h"
#include "fs.h"
#include "dev.h"
#include "time.h"
int32_t SYSCALL1(sys_debugprint, string) {
char *p = (char *)string;
@ -52,4 +53,5 @@ SyscallFn SYSCALL_TABLE[SYSCALLS_MAX] = {
[SYS_DEV_LISTSIZE] = &sys_dev_listsize,
[SYS_DEV_STAT] = &sys_dev_stat,
[SYS_DEV_CMD] = &sys_dev_cmd,
[SYS_TIME] = &sys_time,
};