Skip to content

Commit 91c5f0d

Browse files
Dominik BrodowskiIngo Molnar
authored andcommitted
x86/entry/64/compat: Save one instruction in entry_INT80_compat()
As %rdi is never user except in the following push, there is no need to restore %rdi to the original value. Signed-off-by: Dominik Brodowski <[email protected]> Acked-by: Linus Torvalds <[email protected]> Acked-by: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Denys Vlasenko <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent af52201 commit 91c5f0d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/x86/entry/entry_64_compat.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,7 @@ ENTRY(entry_INT80_compat)
363363
pushq 2*8(%rdi) /* regs->ip */
364364
pushq 1*8(%rdi) /* regs->orig_ax */
365365

366-
movq (%rdi), %rdi /* restore %rdi */
367-
368-
pushq %rdi /* pt_regs->di */
366+
pushq (%rdi) /* pt_regs->di */
369367
pushq %rsi /* pt_regs->si */
370368
pushq %rdx /* pt_regs->dx */
371369
pushq %rcx /* pt_regs->cx */

0 commit comments

Comments
 (0)