Skip to content

Commit da4aff6

Browse files
xinli-intelIngo Molnar
authored andcommitted
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]
1 parent ad42474 commit da4aff6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/entry/entry_64.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,6 @@ SYM_CODE_START(asm_exc_nmi)
12371237
*/
12381238

12391239
movq %rsp, %rdi
1240-
movq $-1, %rsi
12411240
call exc_nmi
12421241

12431242
/*
@@ -1451,7 +1450,6 @@ end_repeat_nmi:
14511450
UNWIND_HINT_REGS
14521451

14531452
movq %rsp, %rdi
1454-
movq $-1, %rsi
14551453
call exc_nmi
14561454

14571455
/* Always restore stashed SPEC_CTRL value (see paranoid_entry) */

0 commit comments

Comments
 (0)