The unified x86 and x86-64 signal bh definitions aren't suitable due to differences in argument passing.
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro> --- arch/x86/signal-bh.S | 42 +++++++++++++++--------------------------- 1 files changed, 15 insertions(+), 27 deletions(-) diff --git a/arch/x86/signal-bh.S b/arch/x86/signal-bh.S index 0eb6230..c63f853 100644 --- a/arch/x86/signal-bh.S +++ b/arch/x86/signal-bh.S @@ -8,53 +8,41 @@ * signal bottom half hanlder. */ signal_bh_trampoline: - push %xbp - mov %xsp, %xbp + push %ebp + movl %esp, %ebp /* save caller saved registers */ - push %xax - push %xcx - push %xdx -#ifdef CONFIG_X86_64 - pushq %r8 - pushq %r9 - pushq %r10 - pushq %r11 -#endif + push %eax + push %ecx + push %edx /* push signal bottom half handler's argument - address of faulting instruction. */ - push (PTR_SIZE)(%xbp) + push 0x04(%ebp) /* call the signal bottom half handler */ push $.bh_return - push (2 * PTR_SIZE)(%xbp) + push 0x08(%ebp) ret .bh_return: /* cleanup call arguments */ - add $PTR_SIZE, %xsp + addl $0x04, %esp /* overwrite return address */ - mov %xax, (2 * PTR_SIZE)(%xbp) + movl %eax, 0x08(%ebp) /* restore caller saved registers */ -#ifdef CONFIG_X86_64 - popq %r11 - popq %r10 - popq %r9 - popq %r8 -#endif - pop %xdx - pop %xcx - pop %xax - - pop %xbp + pop %edx + pop %ecx + pop %eax + + pop %ebp /* * Cleanup bottom half handler address pushed by signal_install_bh(). * We do this by popping the return address from stack into * the call argument. */ - add $PTR_SIZE, %xsp + addl $0x04, %esp ret -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel