fix: create process copy kernel heap
This commit is contained in:
@ -20,7 +20,7 @@ struct pcb *create_process(uint8_t uid)
|
||||
vfree(new_pcb);
|
||||
return NULL;
|
||||
}
|
||||
memcpy(new_pcb->heap, current_pcb->heap, 4096);
|
||||
memcpy(new_pcb->heap, current_pd, 4096);
|
||||
|
||||
new_pcb->next = new_pcb;
|
||||
new_pcb->prev = new_pcb;
|
||||
|
||||
Reference in New Issue
Block a user