[PATCH] i386, entry_32: use zeroentry for iret_exc

From: Alexander van Heukelum
Date: Wed May 20 2009 - 19:19:26 EST


iret_exc uses the error_code path. Use the zeroentry macro here too. This
adds some dwarf2 annotations to the object file, but the executable code
is unchanged.

impact: prepare for removing indirect calls in error_code

Signed-off-by: Alexander van Heukelum <heukelum@xxxxxxxxxxx>
---
arch/x86/kernel/entry_32.S | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index 29dcd74..407443c 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -533,10 +533,7 @@ restore_nocheck_notrace:
irq_return:
INTERRUPT_RETURN
.section .fixup,"ax"
-ENTRY(iret_exc)
- pushl $0 # no error code
- pushl $do_iret_error
- jmp error_code
+zeroentry iret_exc do_iret_error
.previous
.section __ex_table,"a"
.align 4
--
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/