X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fbits%2Fsignal.h;h=06efb11cf271326301b90156ada7afa4a9912430;hb=47d0bcd4762f223364e5b58d5a381aaa0cbd7c38;hp=e66da6d4e1d20428d3914c4a659459294b6b4296;hpb=4860db9f5452f442833366a475910e34f117b579;p=musl diff --git a/arch/powerpc/bits/signal.h b/arch/powerpc/bits/signal.h index e66da6d4..06efb11c 100644 --- a/arch/powerpc/bits/signal.h +++ b/arch/powerpc/bits/signal.h @@ -1,9 +1,14 @@ #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define MINSIGSTKSZ 4096 +#define SIGSTKSZ 10240 +#endif + #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) -typedef unsigned long gregset_t[48]; +typedef unsigned long greg_t, gregset_t[48]; typedef struct { double fpregs[32]; @@ -18,17 +23,12 @@ typedef struct { unsigned vscr; } vrregset_t; -struct sigcontext -{ +struct sigcontext { unsigned long _unused[4]; int signal; unsigned long handler; unsigned long oldmask; void *regs; - gregset_t gp_regs; - fpregset_t fp_regs; - vrregset_t *v_regs; - long vmx_reserve[33+33+32+1]; /* 33=34 for ppc64 */ }; typedef struct { @@ -53,20 +53,21 @@ typedef struct { #endif +struct sigaltstack { + void *ss_sp; + int ss_flags; + size_t ss_size; +}; + typedef struct __ucontext { unsigned long uc_flags; struct __ucontext *uc_link; stack_t uc_stack; int uc_pad[7]; mcontext_t *uc_regs; - sigset_t uc_sigmask; - - int uc_maskext[30]; int uc_pad2[3]; - mcontext_t uc_mcontext; - char uc_reg_space[sizeof(mcontext_t) + 12]; } ucontext_t; #define SA_NOCLDSTOP 1U @@ -86,7 +87,7 @@ typedef struct __ucontext { #define SIGILL 4 #define SIGTRAP 5 #define SIGABRT 6 -#define SIGIOT 6 +#define SIGIOT SIGABRT #define SIGBUS 7 #define SIGFPE 8 #define SIGKILL 9