Commit 31d29c40 by Maxim Kuvyrkov Committed by Maxim Kuvyrkov

linux-unwind.h (m68k_fallback_frame_state): Update to handle 2.6.30 kernel.

	* config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
	handle 2.6.30 kernel.

From-SVN: r149663
parent f6ddbf11
2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
handle 2.6.30 kernel.
2009-07-15 DJ Delorie <dj@redhat.com>
* config/mep/mep.md (sibcall_internal): Change register to allow
......
......@@ -77,9 +77,15 @@ m68k_fallback_frame_state (struct _Unwind_Context *context,
fs->regs.reg[9].how = REG_SAVED_OFFSET;
fs->regs.reg[9].loc.offset = (long) &sc->sc_a1 - cfa;
#ifdef __uClinux__
fs->regs.reg[13].how = REG_SAVED_OFFSET;
fs->regs.reg[13].loc.offset = (long) &sc->sc_a5 - cfa;
#endif
fs->regs.reg[24].how = REG_SAVED_OFFSET;
fs->regs.reg[24].loc.offset = (long) &sc->sc_pc - cfa;
#ifndef __uClinux__
if (*(int *) sc->sc_fpstate)
{
int *fpregs = (int *) sc->sc_fpregs;
......@@ -89,6 +95,9 @@ m68k_fallback_frame_state (struct _Unwind_Context *context,
fs->regs.reg[17].how = REG_SAVED_OFFSET;
fs->regs.reg[17].loc.offset = (long) &fpregs[M68K_FP_SIZE/4] - cfa;
}
#elif defined __mcffpu__
# error Implement this when uClinux kernel is ported to an FPU architecture
#endif
}
#ifdef __mcoldfire__
/* move.l #__NR_rt_sigreturn,%d0; trap #0 */
......
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