m68k: Fix `struct sigcontext' for ColdFire
LibSegFault uses piggybacks sc_fpstate field of the `struct sigcontext' and this patch avoids LibSegFault overflowing this field. Also this removes an unnecessary divergence from classic m68k. Signed-off-by: Maxim Kuvyrkov <maxim@codesourcery.com> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
2ba3abd818
commit
1aac4effad
1 changed files with 1 additions and 3 deletions
|
@ -17,13 +17,11 @@ struct sigcontext {
|
||||||
#ifndef __uClinux__
|
#ifndef __uClinux__
|
||||||
# ifdef __mcoldfire__
|
# ifdef __mcoldfire__
|
||||||
unsigned long sc_fpregs[2][2]; /* room for two fp registers */
|
unsigned long sc_fpregs[2][2]; /* room for two fp registers */
|
||||||
unsigned long sc_fpcntl[3];
|
|
||||||
unsigned char sc_fpstate[16+6*8];
|
|
||||||
# else
|
# else
|
||||||
unsigned long sc_fpregs[2*3]; /* room for two fp registers */
|
unsigned long sc_fpregs[2*3]; /* room for two fp registers */
|
||||||
|
# endif
|
||||||
unsigned long sc_fpcntl[3];
|
unsigned long sc_fpcntl[3];
|
||||||
unsigned char sc_fpstate[216];
|
unsigned char sc_fpstate[216];
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue