diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-07-15 13:29:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-07-17 06:50:13 -0400 |
commit | 23a781e987f05029c4a99a5c145be3efa6eda9f3 (patch) | |
tree | 8f80cdb789b0e91a43ffec89f52a8f1711758b17 | |
parent | 810bc075f78ff2c221536eb3008eac6a492dba2d (diff) |
x86/nmi/64: Minor asm simplification
Replace LEA; MOV with an equivalent SUB. This saves one
instruction.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/entry/entry_64.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index d8ab2b201fa1..0fb52526e452 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S | |||
@@ -1420,8 +1420,7 @@ nested_nmi: | |||
1420 | * Modify the "iret" frame to point to repeat_nmi, forcing another | 1420 | * Modify the "iret" frame to point to repeat_nmi, forcing another |
1421 | * iteration of NMI handling. | 1421 | * iteration of NMI handling. |
1422 | */ | 1422 | */ |
1423 | leaq -1*8(%rsp), %rdx | 1423 | subq $8, %rsp |
1424 | movq %rdx, %rsp | ||
1425 | leaq -10*8(%rsp), %rdx | 1424 | leaq -10*8(%rsp), %rdx |
1426 | pushq $__KERNEL_DS | 1425 | pushq $__KERNEL_DS |
1427 | pushq %rdx | 1426 | pushq %rdx |