aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li (Intel) <[email protected]>2023-09-25 23:13:19 -0700
committerIngo Molnar <[email protected]>2023-09-27 10:04:54 +0200
commitda4aff622a7ae424a0292d7288744692fca34319 (patch)
tree9eedcef8ec4974b1eea9b228626b6853289b8286
parentad424743256b0119bd60a9248db4df5d998000a4 (diff)
x86/entry: Remove unused argument %rsi passed to exc_nmi()
exc_nmi() only takes one argument of type struct pt_regs *, but asm_exc_nmi() calls it with 2 arguments. The second one passed in %rsi seems to be a leftover, so simply remove it. Signed-off-by: Xin Li (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: H. Peter Anvin (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--arch/x86/entry/entry_64.S2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index 43606de22511..fb8dd5648e3a 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -1237,7 +1237,6 @@ SYM_CODE_START(asm_exc_nmi)
*/
movq %rsp, %rdi
- movq $-1, %rsi
call exc_nmi
/*
@@ -1451,7 +1450,6 @@ end_repeat_nmi:
UNWIND_HINT_REGS
movq %rsp, %rdi
- movq $-1, %rsi
call exc_nmi
/* Always restore stashed SPEC_CTRL value (see paranoid_entry) */