aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <bp@alien8.de>2025-03-17 13:47:12 +0100
committerBorislav Petkov (AMD) <bp@alien8.de>2025-03-17 13:47:12 +0100
commit4348e9177813656d5d8bd18f34b3e611df004032 (patch)
treeea04a782a83b1e18c2199d8ff6a3a436d5cb0707
parentx86/fpu: Use XSAVE{,OPT,C,S} and XRSTOR{,S} mnemonics in xstate.h (diff)
downloadwireguard-linux-4348e9177813656d5d8bd18f34b3e611df004032.tar.xz
wireguard-linux-4348e9177813656d5d8bd18f34b3e611df004032.zip
x86/fpu: Clarify the "xa" symbolic name used in the XSTATE* macros
Tie together the %[xa] in the XSAVE/XRSTOR definitions with the respective usage in the asm macros so that it is perfectly clear. No functional changes. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Diffstat (limited to '')
-rw-r--r--arch/x86/kernel/fpu/xstate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/fpu/xstate.h b/arch/x86/kernel/fpu/xstate.h
index 1418423bc4c9..0fd34f53f025 100644
--- a/arch/x86/kernel/fpu/xstate.h
+++ b/arch/x86/kernel/fpu/xstate.h
@@ -109,6 +109,10 @@ static inline int update_pkru_in_sigframe(struct xregs_state __user *buf, u64 ma
/*
* After this @err contains 0 on success or the trap number when the
* operation raises an exception.
+ *
+ * The [xa] input parameter below represents the struct xregs_state pointer
+ * and the asm symbolic name for the argument used in the XSAVE/XRSTOR insns
+ * above.
*/
#define XSTATE_OP(op, st, lmask, hmask, err) \
asm volatile("1:" op "\n\t" \