mirror of
git://git.musl-libc.org/musl
synced 2025-01-18 21:01:01 +00:00
mostly-cosmetic fixups to x32 port merge
This commit is contained in:
parent
adbeefbebd
commit
d8b587796f
@ -2,7 +2,7 @@
|
||||
#define __SYSCALL_LL_O(x) (x)
|
||||
|
||||
#define __scc(X) sizeof(1?(X):0ULL) < 8 ? (unsigned long) (X) : (long long) (X)
|
||||
#define syscall_arg_t long long
|
||||
typedef long long syscall_arg_t;
|
||||
struct __timespec { long long tv_sec; long tv_nsec; };
|
||||
struct __timespec_kernel { long long tv_sec; long long tv_nsec; };
|
||||
#define __tsc(X) ((struct __timespec*)(unsigned long)(X))
|
||||
|
@ -5,11 +5,8 @@
|
||||
#include "syscall_arch.h"
|
||||
|
||||
#ifndef __scc
|
||||
#define __scc(X) (long) (X)
|
||||
#endif
|
||||
|
||||
#ifndef syscall_arg_t
|
||||
#define syscall_arg_t long
|
||||
#define __scc(X) ((long) (X))
|
||||
typedef long syscall_arg_t;
|
||||
#endif
|
||||
|
||||
#if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303)
|
||||
|
@ -1,8 +1,9 @@
|
||||
#include "pthread_impl.h"
|
||||
#include "syscall.h"
|
||||
|
||||
static long sccp(syscall_arg_t nr, syscall_arg_t u, syscall_arg_t v,
|
||||
syscall_arg_t w, syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
|
||||
static long sccp(syscall_arg_t nr,
|
||||
syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
|
||||
syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
|
||||
{
|
||||
return (__syscall)(nr, u, v, w, x, y, z);
|
||||
}
|
||||
|
@ -9,11 +9,13 @@ void __cancel()
|
||||
pthread_exit(PTHREAD_CANCELED);
|
||||
}
|
||||
|
||||
long __syscall_cp_asm(volatile void *, syscall_arg_t, syscall_arg_t, syscall_arg_t,
|
||||
syscall_arg_t, syscall_arg_t, syscall_arg_t, syscall_arg_t);
|
||||
long __syscall_cp_asm(volatile void *, syscall_arg_t,
|
||||
syscall_arg_t, syscall_arg_t, syscall_arg_t,
|
||||
syscall_arg_t, syscall_arg_t, syscall_arg_t);
|
||||
|
||||
long (__syscall_cp)(syscall_arg_t nr, syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
|
||||
syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
|
||||
long (__syscall_cp)(syscall_arg_t nr,
|
||||
syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
|
||||
syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
|
||||
{
|
||||
pthread_t self;
|
||||
long r;
|
||||
|
Loading…
Reference in New Issue
Block a user