mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 06:28:22 +00:00
open syscall
This commit is contained in:
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user