mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: remove already done TODOs
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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); \
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -511,7 +511,6 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO routing table information
|
||||
printoffer(&offer);
|
||||
|
||||
addroute(argv[1], 0, offer.router, 0, 1);
|
||||
|
||||
Reference in New Issue
Block a user