From: Maxim Kuvyrkov Date: Wed, 15 Jul 2009 08:56:13 +0000 (+0000) Subject: linux-unwind.h (m68k_fallback_frame_state): Update to handle 2.6.30 kernel. X-Git-Tag: releases/gcc-4.5.0~4575 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31d29c406122cbefe9ee1f249c5a6f06de8cde09;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 201a3ef8c771..d160c8d26d91 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-07-15 Maxim Kuvyrkov + + * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to + handle 2.6.30 kernel. + 2009-07-15 DJ Delorie * config/mep/mep.md (sibcall_internal): Change register to allow diff --git a/gcc/config/m68k/linux-unwind.h b/gcc/config/m68k/linux-unwind.h index 5f877464f0f2..053c15558caa 100644 --- a/gcc/config/m68k/linux-unwind.h +++ b/gcc/config/m68k/linux-unwind.h @@ -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 */