kernel: remove already done TODOs

This commit is contained in:
Matheus
2024-06-16 12:48:16 -03:00
parent 5b6d15a06c
commit f05eb36cfd
4 changed files with 0 additions and 5 deletions
-2
View File
@@ -5,8 +5,6 @@
#include <errno.h>
#include <kernel/alloc.h>
// TODO have a limit for the fd table
static scache_t *filecache;
#define FILE_HOLD(f) __atomic_add_fetch(&(f)->refcount, 1, __ATOMIC_SEQ_CST)
-1
View File
@@ -82,7 +82,6 @@ int arch_context_saveandcall(void (*fn)(context_t *context, void *argument), voi
#include <string.h>
// kernelgsbase is set as user because they'll be swapped in the context switch
// TODO FPU stuff on all context macros
#define ARCH_CONTEXT_SWITCHTHREAD(x) \
_cpu()->ist.rsp0 = (uint64_t)(x)->kernelstacktop; \
wrmsr(MSR_KERNELGSBASE, (x)->extracontext.gsbase); \
-1
View File
@@ -80,7 +80,6 @@ syscallret_t syscall_setitimer(context_t *context, int which, itimerval_t *unew,
uintmax_t oldremaining, oldrepeat;
itimer_pause(itimer, &oldremaining, &oldrepeat);
// TODO overflow check
uintmax_t repeatus = val.interval.s * 1000000 + val.interval.us;
uintmax_t newus = val.value.s * 1000000 + val.value.us;
itimer_set(itimer, newus, repeatus);
-1
View File
@@ -511,7 +511,6 @@ int main(int argc, char *argv[]) {
}
}
// TODO routing table information
printoffer(&offer);
addroute(argv[1], 0, offer.router, 0, 1);