open syscall

This commit is contained in:
Matheus
2022-08-19 19:01:59 -03:00
parent 1d3405ba10
commit 098b2f5691
7 changed files with 263 additions and 12 deletions
+3
View File
@@ -207,6 +207,8 @@ static void switch_thread(thread_t* thread){
vmm_switchcontext(thread->proc->context);
}
arch_getcls()->thread = thread;
arch_setkernelstack(thread->kernelstack);
@@ -335,6 +337,7 @@ void sched_runinit(){
printf("Open failed: %s\n", strerror(ret));
_panic("Could not load init", 0);
}
char* argv[] = {"/sbin/init", NULL};
char* env[] = {NULL};