mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 23:35:02 +00:00
Use cpufunc macros instead of using inline asm directly.
This commit is contained in:
parent
79dba4cb34
commit
90a801d702
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89044
|
@ -121,7 +121,7 @@ cpu_fork(struct thread *td1, struct proc *p2, int flags)
|
|||
mtx_unlock_spin(&sched_lock);
|
||||
}
|
||||
/* Make sure the copied windows are spilled. */
|
||||
__asm __volatile("flushw" : :);
|
||||
flushw();
|
||||
/* Copy the pcb (this will copy the windows saved in the pcb, too). */
|
||||
bcopy(td1->td_pcb, pcb, sizeof(*pcb));
|
||||
|
||||
|
|
Loading…
Reference in a new issue