summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/xsave.h
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2014-05-30 23:59:24 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2014-05-31 02:12:41 +0200
commit8ff925e10f2c72680918b95173ef4f8bb982d59e (patch)
treed8f4358a9962d4dbb9f5e5f9706e46678f46c690 /arch/x86/include/asm/xsave.h
parentx86/xsave: Make it clear that the XSAVE macros use (%edi)/(%rdi) (diff)
downloadlinux-8ff925e10f2c72680918b95173ef4f8bb982d59e.tar.xz
linux-8ff925e10f2c72680918b95173ef4f8bb982d59e.zip
x86/xsaves: Clean up code in xstate offsets computation in xsave area
This patch cleans up some code in xstate offsets computation in xsave area: 1. It changes xstate_comp_offsets as an array. This avoids possible NULL pointer caused by possible kmalloc() failure during boot time. 2. It changes the global variable xstate_comp_sizes to a local variable because it is used only in setup_xstate_comp(). 3. It adds missing offsets for FP and SSE in xsave area. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Link: http://lkml.kernel.org/r/1401387164-43416-17-git-send-email-fenghua.yu@intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/xsave.h')
0 files changed, 0 insertions, 0 deletions