Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Maxim Kuvyrkov and committed by
Geert Uytterhoeven
1aac4eff 2ba3abd8

+1 -3
+1 -3
arch/m68k/include/asm/sigcontext.h
··· 17 17 #ifndef __uClinux__ 18 18 # ifdef __mcoldfire__ 19 19 unsigned long sc_fpregs[2][2]; /* room for two fp registers */ 20 - unsigned long sc_fpcntl[3]; 21 - unsigned char sc_fpstate[16+6*8]; 22 20 # else 23 21 unsigned long sc_fpregs[2*3]; /* room for two fp registers */ 22 + # endif 24 23 unsigned long sc_fpcntl[3]; 25 24 unsigned char sc_fpstate[216]; 26 - # endif 27 25 #endif 28 26 }; 29 27