]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, xsave: Disable xsave in i387 emulation mode
authorRobert Richter <robert.richter@amd.com>
Wed, 21 Jul 2010 17:03:57 +0000 (19:03 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 12 Aug 2010 21:16:54 +0000 (14:16 -0700)
commit1f999ab5a1360afc388868cc0ef9afe8edeef3be
treee69f4699550930a1f97f8c1770dba0d0d9f6f3db
parentad41a1e0cab07c5125456e8d38e5b1ab148d04aa
x86, xsave: Disable xsave in i387 emulation mode

xsave is broken for (!HAVE_HWFP). This is the case if config
MATH_EMULATION is enabled, 'no387' kernel parameter is set and xsave
exists. xsave will not work because x86/math-emu and xsave share the
same memory. As this case can be treated as corner case we simply
disable xsave then.

Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <1279731838-1522-7-git-send-email-robert.richter@amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/i387.c