Remove unused code in pc32/apic_vector.s
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 9 Jul 2009 04:11:00 +0000 (12:11 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 11 Jul 2009 02:27:15 +0000 (10:27 +0800)
sys/platform/pc32/apic/apic_vector.s

index 9bfccea..59519ca 100644 (file)
        mov     $KPSEL,%ax ;                                            \
        mov     %ax,%fs ;                                               \
 
-#define PUSH_DUMMY                                                     \
-       pushfl ;                /* phys int frame / flags */            \
-       pushl %cs ;             /* phys int frame / cs */               \
-       pushl   12(%esp) ;      /* original caller eip */               \
-       pushl   $0 ;            /* dummy error code */                  \
-       pushl   $0 ;            /* dummy trap type */                   \
-       pushl   $0 ;            /* dummy xflags type */                 \
-       subl    $13*4,%esp ;    /* pushal + 4 seg regs (dummy) + CPL */ \
-
 /*
  * Warning: POP_FRAME can only be used if there is no chance of a
  * segment register being changed (e.g. by procfs), which is why syscalls
@@ -77,9 +68,6 @@
        popal ;                                                         \
        addl    $3*4,%esp ;     /* dummy xflags, trap & error codes */  \
 
-#define POP_DUMMY                                                      \
-       addl    $19*4,%esp ;                                            \
-
 #define IOAPICADDR(irq_num) \
        CNAME(int_to_apicintpin) + IOAPIC_IM_SIZE * (irq_num) + IOAPIC_IM_ADDR
 #define REDIRIDX(irq_num) \