Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/m68k/linux-unwind.h @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
75 fs->regs.reg[8].how = REG_SAVED_OFFSET; | 75 fs->regs.reg[8].how = REG_SAVED_OFFSET; |
76 fs->regs.reg[8].loc.offset = (long) &sc->sc_a0 - cfa; | 76 fs->regs.reg[8].loc.offset = (long) &sc->sc_a0 - cfa; |
77 fs->regs.reg[9].how = REG_SAVED_OFFSET; | 77 fs->regs.reg[9].how = REG_SAVED_OFFSET; |
78 fs->regs.reg[9].loc.offset = (long) &sc->sc_a1 - cfa; | 78 fs->regs.reg[9].loc.offset = (long) &sc->sc_a1 - cfa; |
79 | 79 |
80 #ifdef __uClinux__ | |
81 fs->regs.reg[13].how = REG_SAVED_OFFSET; | |
82 fs->regs.reg[13].loc.offset = (long) &sc->sc_a5 - cfa; | |
83 #endif | |
84 | |
80 fs->regs.reg[24].how = REG_SAVED_OFFSET; | 85 fs->regs.reg[24].how = REG_SAVED_OFFSET; |
81 fs->regs.reg[24].loc.offset = (long) &sc->sc_pc - cfa; | 86 fs->regs.reg[24].loc.offset = (long) &sc->sc_pc - cfa; |
82 | 87 |
88 #ifndef __uClinux__ | |
83 if (*(int *) sc->sc_fpstate) | 89 if (*(int *) sc->sc_fpstate) |
84 { | 90 { |
85 int *fpregs = (int *) sc->sc_fpregs; | 91 int *fpregs = (int *) sc->sc_fpregs; |
86 | 92 |
87 fs->regs.reg[16].how = REG_SAVED_OFFSET; | 93 fs->regs.reg[16].how = REG_SAVED_OFFSET; |
88 fs->regs.reg[16].loc.offset = (long) &fpregs[0] - cfa; | 94 fs->regs.reg[16].loc.offset = (long) &fpregs[0] - cfa; |
89 fs->regs.reg[17].how = REG_SAVED_OFFSET; | 95 fs->regs.reg[17].how = REG_SAVED_OFFSET; |
90 fs->regs.reg[17].loc.offset = (long) &fpregs[M68K_FP_SIZE/4] - cfa; | 96 fs->regs.reg[17].loc.offset = (long) &fpregs[M68K_FP_SIZE/4] - cfa; |
91 } | 97 } |
98 #elif defined __mcffpu__ | |
99 # error Implement this when uClinux kernel is ported to an FPU architecture | |
100 #endif | |
92 } | 101 } |
93 #ifdef __mcoldfire__ | 102 #ifdef __mcoldfire__ |
94 /* move.l #__NR_rt_sigreturn,%d0; trap #0 */ | 103 /* move.l #__NR_rt_sigreturn,%d0; trap #0 */ |
95 else if (pc[0] == 0x203c && pc[1] == 0x0000 && | 104 else if (pc[0] == 0x203c && pc[1] == 0x0000 && |
96 pc[2] == 0x00ad && pc[3] == 0x4e40) | 105 pc[2] == 0x00ad && pc[3] == 0x4e40) |