Skip to contentSkip to conversation

x86: move common_interrupt to entry.S

PATCH Superseded Feng Wu 1 participant 1 message May 6, 2014

v5 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

Feng Wu

author
#0 lore raw

PATCH v5 2/10 x86: move common_interrupt to entry.S

This patch moves label common_interrupt from asm_defns.h to entry.S

---
 xen/arch/x86/i8259.c                   |  2 --
 xen/arch/x86/x86_64/entry.S            |  6 +++++
 xen/include/asm-x86/x86_64/asm_defns.h | 49 ++++++++++++++--------------------
 3 files changed, 26 insertions(+), 31 deletions(-)
xen/arch/x86/i8259.c +0 -2
index 6fdcce8..9fec490 100644
@@ -35,8 +35,6 @@
 
 __asm__(".section .text");
 
-BUILD_COMMON_IRQ()
-
 #define IRQ_NAME(nr) VEC##nr##_interrupt
 
 #define BI(nr)                                           \
xen/arch/x86/x86_64/entry.S +6 -0
index 3ea4683..1c81852 100644
@@ -465,6 +465,12 @@ ENTRY(dom_crash_sync_extable)
         xorl  %edi,%edi
         jmp   asm_domain_crash_synchronous /* Does not return */
 
+ENTRY(common_interrupt)
+        SAVE_ALL
+        movq %rsp,%rdi
+        callq do_IRQ
+        jmp ret_from_intr
+
 /* No special register assumptions. */
 ENTRY(ret_from_intr)
         GET_CURRENT(%rbx)
xen/include/asm-x86/x86_64/asm_defns.h +20 -29

62 lines not on this page · raw message

Signature · 1 line
1.8.3.1