fix: new_pt in deep_copy (still not working tho)

This commit is contained in:
0x35c
2025-11-30 13:45:12 +01:00
parent cde3702132
commit dbfa2febec

View File

@ -60,7 +60,9 @@ static int deep_copy(struct pcb *new_pcb)
free_pts();
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();
return -1;
}