From bc4491e3f888f5073843490eaf0e4b74977f2e45 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Thu, 9 Jul 2009 12:11:00 +0800 Subject: [PATCH] Remove unused code in pc32/apic_vector.s --- sys/platform/pc32/apic/apic_vector.s | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sys/platform/pc32/apic/apic_vector.s b/sys/platform/pc32/apic/apic_vector.s index 9bfccea38d..59519ca54a 100644 --- a/sys/platform/pc32/apic/apic_vector.s +++ b/sys/platform/pc32/apic/apic_vector.s @@ -55,15 +55,6 @@ 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) \ -- 2.41.0