mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
1aac4effad
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>
29 lines
666 B
C
29 lines
666 B
C
#ifndef _ASM_M68k_SIGCONTEXT_H
|
|
#define _ASM_M68k_SIGCONTEXT_H
|
|
|
|
struct sigcontext {
|
|
unsigned long sc_mask; /* old sigmask */
|
|
unsigned long sc_usp; /* old user stack pointer */
|
|
unsigned long sc_d0;
|
|
unsigned long sc_d1;
|
|
unsigned long sc_a0;
|
|
unsigned long sc_a1;
|
|
#ifdef __uClinux__
|
|
unsigned long sc_a5;
|
|
#endif
|
|
unsigned short sc_sr;
|
|
unsigned long sc_pc;
|
|
unsigned short sc_formatvec;
|
|
#ifndef __uClinux__
|
|
# ifdef __mcoldfire__
|
|
unsigned long sc_fpregs[2][2]; /* room for two fp registers */
|
|
# else
|
|
unsigned long sc_fpregs[2*3]; /* room for two fp registers */
|
|
# endif
|
|
unsigned long sc_fpcntl[3];
|
|
unsigned char sc_fpstate[216];
|
|
#endif
|
|
};
|
|
|
|
#endif
|