forked from Minki/linux
00ebfe58b0
The following patch defines sigcontext ABI of ColdFire. Due to ISA restrictions ColdFire needs different rt_sigreturn trampoline. And due to ColdFire FP registers being 8-bytes instead of 12-bytes on m68k, sigcontext and fpregset structures should be updated. Regarding the sc_fpstate[16+6*8] field, it would've been enough 16 bytes to store ColdFire's FP state. To accomodate GLIBC's libSegFault it would'be been enough 6*8 bytes (room for the 6 non-call-clobbered FP registers). I set it to 16+6*8 to provide some extra space for any future changes in the ColdFire FPU. Signed-off-by: Maxim Kuvyrkov <maxim@codesourcery.com> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
31 lines
732 B
C
31 lines
732 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 */
|
|
unsigned long sc_fpcntl[3];
|
|
unsigned char sc_fpstate[16+6*8];
|
|
# else
|
|
unsigned long sc_fpregs[2*3]; /* room for two fp registers */
|
|
unsigned long sc_fpcntl[3];
|
|
unsigned char sc_fpstate[216];
|
|
# endif
|
|
#endif
|
|
};
|
|
|
|
#endif
|