Use hal_memcpy to propagate new proc interrupt frame

This commit is contained in:
2025-11-10 20:25:55 +01:00
parent d81d1133dd
commit 26e5d92947

View File

@ -224,9 +224,7 @@ void proc_sched(void *cpustate) {
hal_intr_disable(); hal_intr_disable();
sched_ticks++; sched_ticks++;
IntrStackFrame *frame = cpustate; hal_memcpy(&PROCS.current->platformdata.trapframe, cpustate, sizeof(IntrStackFrame));
PROCS.current->platformdata.trapframe = *frame;
PROCS.current = proc_nextready(); PROCS.current = proc_nextready();