]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/fpu: Clarify the "xa" symbolic name used in the XSTATE* macros
authorBorislav Petkov (AMD) <bp@alien8.de>
Mon, 17 Mar 2025 12:47:12 +0000 (13:47 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 17 Mar 2025 12:47:12 +0000 (13:47 +0100)
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>
arch/x86/kernel/fpu/xstate.h

index 1418423bc4c9ddf0bd12ab722a07213c4e749651..0fd34f53f0258a3cec0d5aeba38dc617438e91a5 100644 (file)
@@ -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"                                     \