Skip to content

Commit 3aa99fc

Browse files
Dominik Brodowskiingomolnar
authored andcommitted
x86/entry/64: Remove 'interrupt' macro
It is now trivial to call interrupt_entry() and then the actual worker. Therefore, remove the interrupt macro and open code it all. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: dan.j.williams@intel.com Link: http://lkml.kernel.org/r/20180220210113.6725-5-linux@dominikbrodowski.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 90a6acc commit 3aa99fc

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

‎arch/x86/entry/entry_64.S‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -608,14 +608,6 @@ ENTRY(interrupt_entry)
608608
ret
609609
END(interrupt_entry)
610610

611-
/* 0(%rsp): ~(interrupt number) */
612-
.macro interrupt func
613-
call interrupt_entry
614-
615-
UNWIND_HINT_REGS indirect=1
616-
call \func /* rdi points to pt_regs */
617-
.endm
618-
619611
/*
620612
* The interrupt stubs push (~vector+0x80) onto the stack and
621613
* then jump to common_interrupt.
@@ -624,7 +616,9 @@ END(interrupt_entry)
624616
common_interrupt:
625617
ASM_CLAC
626618
addq $-0x80, (%rsp) /* Adjust vector to [-256, -1] range */
627-
interrupt do_IRQ
619+
call interrupt_entry
620+
UNWIND_HINT_REGS indirect=1
621+
call do_IRQ /* rdi points to pt_regs */
628622
/* 0(%rsp): old RSP */
629623
ret_from_intr:
630624
DISABLE_INTERRUPTS(CLBR_ANY)
@@ -820,7 +814,9 @@ ENTRY(\sym)
820814
ASM_CLAC
821815
pushq $~(\num)
822816
.Lcommon_\sym:
823-
interrupt \do_sym
817+
call interrupt_entry
818+
UNWIND_HINT_REGS indirect=1
819+
call \do_sym /* rdi points to pt_regs */
824820
jmp ret_from_intr
825821
END(\sym)
826822
.endm

0 commit comments

Comments
 (0)