]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/irq/32: Add missing clobber to inline asm
authorUros Bizjak <ubizjak@gmail.com>
Mon, 3 Mar 2025 15:54:22 +0000 (16:54 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Mar 2025 19:12:40 +0000 (20:12 +0100)
i386 ABI declares %edx as a call-clobbered register.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250303155446.112769-2-ubizjak@gmail.com
arch/x86/kernel/irq_32.c

index c4719c40252fc7c681bfc40773148f2e9c189d42..eab458009f9735408f6e147f4bca9a1471791a08 100644 (file)
@@ -98,7 +98,7 @@ static inline int execute_on_irq_stack(int overflow, struct irq_desc *desc)
                     "movl %[sp], %%esp"
                     : "+a" (desc), [sp] "+b" (isp)
                     : [thunk_target] "D" (desc->handle_irq)
-                    : "memory", "cc", "ecx");
+                    : "memory", "cc", "edx", "ecx");
        return 1;
 }