Commit c58654bb authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] put "kernel_thread_helper" in right linker segment

This fixes the "kernel_thread_helper" function so that it is in the
right segment (.text) regardless of any other code movement by the
compiler (eg "-funit-at-a-time").
parent 8afedafa
......@@ -252,13 +252,15 @@ void show_regs(struct pt_regs * regs)
* the "args".
*/
extern void kernel_thread_helper(void);
__asm__(".align 4\n"
__asm__(".section .text\n"
".align 4\n"
"kernel_thread_helper:\n\t"
"movl %edx,%eax\n\t"
"pushl %edx\n\t"
"call *%ebx\n\t"
"pushl %eax\n\t"
"call do_exit");
"call do_exit\n"
".previous");
/*
* Create a kernel thread
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment