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>
This commit is contained in:
parent
90a6acc4e7
commit
3aa99fc3e7
@ -608,14 +608,6 @@ ENTRY(interrupt_entry)
|
|||||||
ret
|
ret
|
||||||
END(interrupt_entry)
|
END(interrupt_entry)
|
||||||
|
|
||||||
/* 0(%rsp): ~(interrupt number) */
|
|
||||||
.macro interrupt func
|
|
||||||
call interrupt_entry
|
|
||||||
|
|
||||||
UNWIND_HINT_REGS indirect=1
|
|
||||||
call \func /* rdi points to pt_regs */
|
|
||||||
.endm
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The interrupt stubs push (~vector+0x80) onto the stack and
|
* The interrupt stubs push (~vector+0x80) onto the stack and
|
||||||
* then jump to common_interrupt.
|
* then jump to common_interrupt.
|
||||||
@ -624,7 +616,9 @@ END(interrupt_entry)
|
|||||||
common_interrupt:
|
common_interrupt:
|
||||||
ASM_CLAC
|
ASM_CLAC
|
||||||
addq $-0x80, (%rsp) /* Adjust vector to [-256, -1] range */
|
addq $-0x80, (%rsp) /* Adjust vector to [-256, -1] range */
|
||||||
interrupt do_IRQ
|
call interrupt_entry
|
||||||
|
UNWIND_HINT_REGS indirect=1
|
||||||
|
call do_IRQ /* rdi points to pt_regs */
|
||||||
/* 0(%rsp): old RSP */
|
/* 0(%rsp): old RSP */
|
||||||
ret_from_intr:
|
ret_from_intr:
|
||||||
DISABLE_INTERRUPTS(CLBR_ANY)
|
DISABLE_INTERRUPTS(CLBR_ANY)
|
||||||
@ -820,7 +814,9 @@ ENTRY(\sym)
|
|||||||
ASM_CLAC
|
ASM_CLAC
|
||||||
pushq $~(\num)
|
pushq $~(\num)
|
||||||
.Lcommon_\sym:
|
.Lcommon_\sym:
|
||||||
interrupt \do_sym
|
call interrupt_entry
|
||||||
|
UNWIND_HINT_REGS indirect=1
|
||||||
|
call \do_sym /* rdi points to pt_regs */
|
||||||
jmp ret_from_intr
|
jmp ret_from_intr
|
||||||
END(\sym)
|
END(\sym)
|
||||||
.endm
|
.endm
|
||||||
|
Loading…
Reference in New Issue
Block a user