Skip to content

Commit

Permalink
x86/fpu: Clarify the "xa" symbolic name used in the XSTATE* macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov (AMD) committed Mar 17, 2025
1 parent 2883b4c commit 4348e91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/kernel/fpu/xstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 4348e91

Please sign in to comment.