use 64-bit semid_ds layout in the generic version of bits/sem.h
[musl] / arch / sh / syscall_arch.h
index 7ee21a5..48f61d9 100644 (file)
@@ -2,13 +2,14 @@
 ((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
 ((union { long long ll; long l[2]; }){ .ll = x }).l[1]
 #define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x))
+#define __SYSCALL_LL_PRW(x) 0, __SYSCALL_LL_E((x))
 
 /* The extra OR instructions are to work around a hardware bug:
  * http://documentation.renesas.com/doc/products/mpumcu/tu/tnsh7456ae.pdf
  */
 #define __asm_syscall(trapno, ...) do {   \
        __asm__ __volatile__ (                \
-               "trapa #" #trapno "\n"            \
+               "trapa #31\n"            \
                "or r0, r0\n"                     \
                "or r0, r0\n"                     \
                "or r0, r0\n"                     \
@@ -85,3 +86,5 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo
        register long r1 __asm__("r1") = f;
        __asm_syscall(22, "r"(r3), "r"(r4), "r"(r5), "r"(r6), "r"(r7), "0"(r0), "r"(r1));
 }
+
+#define SYSCALL_IPC_BROKEN_MODE