]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a few nits in the earlier changes to prevent local information leakage
authorjhb <jhb@FreeBSD.org>
Wed, 25 Mar 2009 22:08:30 +0000 (22:08 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 25 Mar 2009 22:08:30 +0000 (22:08 +0000)
commitafc2ecb61b9348611fdae9f1b66b88494c3891d5
tree856f56f219282bb7da4e7a2456d17f41f65cbfaf
parent9c09aaf3a38f2d4fba3349ede23e3c51d6a523ea
Fix a few nits in the earlier changes to prevent local information leakage
in AMD FPUs:
- Do not clear the affected state in the case that the FPU registers for
  the thread that already owns the FPU are changed via fpu_setregs().  The
  only local information the thread would see is its own state in that
  case.
- Fix a type mismatch for the dummy variable used in a "fld".  It accepts
  a float, not a double.

Reviewed by: bde
Approved by: so (cperciva)
MFC after: 1 month
sys/amd64/amd64/fpu.c
sys/i386/isa/npx.c