Use hal_memcpy to propagate new proc interrupt frame
This commit is contained in:
@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user