[PATCH 3/4] x86, 32-bit: Don't push args on stack in kernel_thread_helper
From: Brian Gerst
Date: Fri Nov 13 2009 - 14:57:40 EST
regparm(3) is the normal calling convention now.
Signed-off-by: Brian Gerst <brgerst@xxxxxxxxx>
---
arch/x86/kernel/entry_32.S | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index 2778ae3..96e9c32 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -985,11 +985,7 @@ ENTRY(kernel_thread_helper)
pushl $0 # fake return address for unwinder
CFI_STARTPROC
movl %edi,%eax
- push %edi
- CFI_ADJUST_CFA_OFFSET 4
call *%esi
- push %eax
- CFI_ADJUST_CFA_OFFSET 4
call do_exit
ud2 # padding for call trace
CFI_ENDPROC
--
1.6.2.5
--
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/