syscalls: continue working on fork syscall

This commit is contained in:
2025-07-07 00:19:35 +03:00
parent 2a7baf1184
commit e793e45854
3 changed files with 37 additions and 9 deletions
+5 -1
View File
@@ -62,7 +62,11 @@ int sys_fork(TrapFrame *tf)
{
debug_log("FORKFORKFORKFORK\n");
uint32_t* new_pd = copy_page_dir(current->pagedir);
uint32_t* new_pd = copy_page_dir(current->pagedir) - 0xC0000000;
debug_log("got this shit done hehe\n");
set_page_dir((uint32_t)new_pd - 0xC0000000);
while(1){}
Process* child = task_create(0, 0, 3, new_pd);