Fix FPU context save/restore
* Use fnsave/frstor instead of fxsave/fxrstor on both
architectures to avoid GP faults from unaligned operands
* Kernel heap does not guarantee 16-byte alignment required
by fxsave; fnsave has no alignment requirement
* fnsave is sufficient since kernel is compiled with -mno-sse
and only x87 FPU state needs saving
2 files changed,
11 insertions,
5 deletions