diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2014-05-30 11:19:21 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-05-30 11:19:21 -0400 |
commit | c9e5a5a7034146493386d985ff432aed8059929a (patch) | |
tree | 7e814c4a1741ef21104bb21282f28b99c2c4ffd3 /arch | |
parent | 7496d6458fe3219d63848ce4a9afbd86245cab22 (diff) |
x86/xsave: Make it clear that the XSAVE macros use (%edi)/(%rdi)
The XSAVE instruction family takes a memory argment. The macros use
(%edi)/(%rdi) as that memory argument - make that clear to the reader.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1401387164-43416-7-git-send-email-fenghua.yu@intel.com
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/xsave.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/xsave.h b/arch/x86/include/asm/xsave.h index 1ba577c670ad..bbebd6e0a9ce 100644 --- a/arch/x86/include/asm/xsave.h +++ b/arch/x86/include/asm/xsave.h | |||
@@ -52,6 +52,7 @@ extern void xsave_init(void); | |||
52 | extern void update_regset_xstate_info(unsigned int size, u64 xstate_mask); | 52 | extern void update_regset_xstate_info(unsigned int size, u64 xstate_mask); |
53 | extern int init_fpu(struct task_struct *child); | 53 | extern int init_fpu(struct task_struct *child); |
54 | 54 | ||
55 | /* These macros all use (%edi)/(%rdi) as the single memory argument. */ | ||
55 | #define XSAVE ".byte " REX_PREFIX "0x0f,0xae,0x27" | 56 | #define XSAVE ".byte " REX_PREFIX "0x0f,0xae,0x27" |
56 | #define XSAVEOPT ".byte " REX_PREFIX "0x0f,0xae,0x37" | 57 | #define XSAVEOPT ".byte " REX_PREFIX "0x0f,0xae,0x37" |
57 | #define XSAVES ".byte " REX_PREFIX "0x0f,0xc7,0x2f" | 58 | #define XSAVES ".byte " REX_PREFIX "0x0f,0xc7,0x2f" |