fixing pf, again

This commit is contained in:
RaphProductions 2025-05-09 16:01:25 +02:00
parent 4309b666a4
commit f27e0a240c
11 changed files with 35 additions and 12 deletions

View file

@ -122,6 +122,8 @@ void schedule(registers_t *regs)
return;
}
memcpy(&curr_proc->regs, regs, sizeof(registers_t));
if (curr_proc->type == SCHED_DIED) {
sched_process *prev_proc = proc_list;
while (prev_proc->next != curr_proc) {
@ -136,9 +138,9 @@ void schedule(registers_t *regs)
// R.I.P. process
pmm_free_page(curr_proc);
}
memcpy(&curr_proc->regs, regs, sizeof(registers_t));
return;
}
curr_proc = curr_proc->next;
if (curr_proc == NULL)