X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fsh%2Fsyscall_arch.h;h=48f61d94a2f5d34d92f52e1cfc815fc098b6b6f9;hb=65735baa75cb7176a0b3b784f46c9500c8639b36;hp=7ee21a56f6e94a643d29a584a4c8516acc9b1920;hpb=aacd348637e38795dd7ae3c7c8c908d8c0cd24fd;p=musl diff --git a/arch/sh/syscall_arch.h b/arch/sh/syscall_arch.h index 7ee21a56..48f61d94 100644 --- a/arch/sh/syscall_arch.h +++ b/arch/sh/syscall_arch.h @@ -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