fix: new_pt in deep_copy (still not working tho)
This commit is contained in:
@ -60,7 +60,9 @@ static int deep_copy(struct pcb *new_pcb)
|
|||||||
free_pts();
|
free_pts();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!copy_pt(PTE2VA(1023, i), new_pt, i)) {
|
PD[i + USER_PT_END / 2] = (uint32_t)new_pt | INIT_FLAGS;
|
||||||
|
if (!copy_pt(PTE2VA(1023, i), PTE2VA(1023, i + USER_PT_END / 2),
|
||||||
|
i)) {
|
||||||
free_pts();
|
free_pts();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user