| From | "Hou Wenlong" <> | Subject | [PATCH RFC 11/43] x86/irq: Adapt assembly for PIE support | Date | Fri, 28 Apr 2023 17:50:51 +0800 |
| |
Change the assembly options to work with pointers instead of integers. The generated code is the same PIE just ensures input is a pointer.
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com> Cc: Thomas Garnier <thgarnie@chromium.org> Cc: Lai Jiangshan <jiangshan.ljs@antgroup.com> Cc: Kees Cook <keescook@chromium.org> --- arch/x86/include/asm/irq_stack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/irq_stack.h b/arch/x86/include/asm/irq_stack.h index 798183867d78..caba5d1d0800 100644 --- a/arch/x86/include/asm/irq_stack.h +++ b/arch/x86/include/asm/irq_stack.h @@ -93,7 +93,7 @@ "popq %%rsp \n" \ \ : "+r" (tos), ASM_CALL_CONSTRAINT \ - : [__func] "i" (func), [tos] "r" (tos) argconstr \ + : [__func] "X" (func), [tos] "r" (tos) argconstr \ : "cc", "rax", "rcx", "rdx", "rsi", "rdi", "r8", "r9", "r10", \ "memory" \ ); \ -- 2.31.1
|