fix wrong sigaction syscall ABI on mips*, or1k, microblaze, riscv64
[musl] / arch / microblaze / bits / signal.h
index 01fa7bf..f25b7c6 100644 (file)
@@ -1,10 +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 2048
+#define SIGSTKSZ 8192
+#endif
+
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 typedef unsigned long greg_t, gregset_t[38];
-typedef struct sigcontext
-{
+typedef struct sigcontext {
        struct {
                unsigned long r0, r1, r2, r3, r4, r5, r6, r7;
                unsigned long r8, r9, r10, r11, r12, r13, r14, r15;
@@ -42,7 +46,6 @@ typedef struct __ucontext {
 #define SA_RESTART    0x10000000
 #define SA_NODEFER    0x40000000
 #define SA_RESETHAND  0x80000000
-#define SA_RESTORER   0x04000000
 
 #endif