[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1dfdda41e63f0eefe39ab3982e917d9c3ef3a499.1741988314.git.jpoimboe@kernel.org>
Date: Fri, 14 Mar 2025 14:41:16 -0700
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: x86@...nel.org
Cc: linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Peter Zijlstra <peterz@...radead.org>,
Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>,
Uros Bizjak <ubizjak@...il.com>,
Andrew Cooper <andrew.cooper3@...rix.com>,
Ingo Molnar <mingo@...nel.org>
Subject: [PATCH 03/20] x86/mm: Use named asm operands in task_size_max()
Use named operands in preparation for removing the operand numbering
restrictions in alternative_io().
Signed-off-by: Josh Poimboeuf <jpoimboe@...nel.org>
---
arch/x86/include/asm/page_64.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/include/asm/page_64.h b/arch/x86/include/asm/page_64.h
index b5279f5d5601..db3003acd41e 100644
--- a/arch/x86/include/asm/page_64.h
+++ b/arch/x86/include/asm/page_64.h
@@ -85,9 +85,9 @@ static __always_inline unsigned long task_size_max(void)
{
unsigned long ret;
- alternative_io("movq %[small],%0","movq %[large],%0",
- X86_FEATURE_LA57,
- "=r" (ret),
+ alternative_io("movq %[small], %[ret]",
+ "movq %[large], %[ret]", X86_FEATURE_LA57,
+ [ret] "=r" (ret),
[small] "i" ((1ul << 47)-PAGE_SIZE),
[large] "i" ((1ul << 56)-PAGE_SIZE));
--
2.48.1
Powered by blists - more mailing lists