mostly-cosmetic fixups to x32 port merge

This commit is contained in:
Rich Felker 2014-02-23 05:43:09 -05:00
parent adbeefbebd
commit d8b587796f
4 changed files with 12 additions and 12 deletions

View File

@ -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))

View File

@ -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)

View File

@ -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);
}

View File

@ -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;