mirror of
https://github.com/openbsd/src.git
synced 2026-04-19 03:34:13 +00:00
ipi_drop_fpstate() needs to check if the current fpu context matches the expected one sent via IPI. Only after that %fprs should be cleared. Use the same asm in ipi_drop_fpstate() as in the start of ipi_save_fpstate(). Also simplify ipi_drop_fpstate() and clearfpstate() since there is no need to enable the FPU before clearing %fprs. OK miod@ kettenis@ deraadt@