summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rwxr-xr-xarch/arm/bits/alltypes.h.sh2
-rw-r--r--arch/arm/bits/syscall.h2
-rwxr-xr-xarch/i386/bits/alltypes.h.sh2
-rw-r--r--arch/i386/bits/syscall.h2
-rw-r--r--arch/mips/atomic.h8
-rwxr-xr-xarch/mips/bits/alltypes.h.sh2
-rw-r--r--arch/mips/bits/syscall.h2
-rw-r--r--arch/x86_64/bits/syscall.h2
8 files changed, 19 insertions, 3 deletions
diff --git a/arch/arm/bits/alltypes.h.sh b/arch/arm/bits/alltypes.h.sh
index 4ba3d81c..274de0df 100755
--- a/arch/arm/bits/alltypes.h.sh
+++ b/arch/arm/bits/alltypes.h.sh
@@ -18,7 +18,7 @@ union \1 \2;\
TYPEDEF unsigned size_t;
TYPEDEF int ssize_t;
-TYPEDEF long ptrdiff_t;
+TYPEDEF int ptrdiff_t;
TYPEDEF __builtin_va_list va_list;
diff --git a/arch/arm/bits/syscall.h b/arch/arm/bits/syscall.h
index 816d7b05..9932c9e5 100644
--- a/arch/arm/bits/syscall.h
+++ b/arch/arm/bits/syscall.h
@@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
+#define __SYSCALL_SSLEN 8
+
long (__syscall)(long, ...);
static inline long __syscall0(long n)
diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh
index 10956690..10fcf6a3 100755
--- a/arch/i386/bits/alltypes.h.sh
+++ b/arch/i386/bits/alltypes.h.sh
@@ -18,7 +18,7 @@ union \1 \2;\
TYPEDEF unsigned size_t;
TYPEDEF int ssize_t;
-TYPEDEF long ptrdiff_t;
+TYPEDEF int ptrdiff_t;
#if __GNUC__ >= 3
TYPEDEF __builtin_va_list va_list;
diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h
index 37b339c0..4b574e99 100644
--- a/arch/i386/bits/syscall.h
+++ b/arch/i386/bits/syscall.h
@@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x))
+#define __SYSCALL_SSLEN 8
+
static inline long __syscall0(long __n)
{
unsigned long __ret;
diff --git a/arch/mips/atomic.h b/arch/mips/atomic.h
index a09f98df..f3478ef2 100644
--- a/arch/mips/atomic.h
+++ b/arch/mips/atomic.h
@@ -27,6 +27,7 @@ static inline int a_cas(volatile int *p, int t, int s)
int dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%2)\n"
" bne %0, %3, 1f\n"
@@ -56,6 +57,7 @@ static inline int a_swap(volatile int *x, int v)
int old, dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%2)\n"
" addu %1, %3, $0\n"
@@ -73,6 +75,7 @@ static inline int a_fetch_add(volatile int *x, int v)
int old, dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%2)\n"
" addu %1, %0, %3\n"
@@ -90,6 +93,7 @@ static inline void a_inc(volatile int *x)
int dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%1)\n"
" addu %0, %0, 1\n"
@@ -106,6 +110,7 @@ static inline void a_dec(volatile int *x)
int dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%1)\n"
" subu %0, %0, 1\n"
@@ -122,6 +127,7 @@ static inline void a_store(volatile int *p, int x)
int dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%1)\n"
" addu %0, %2, $0\n"
@@ -147,6 +153,7 @@ static inline void a_and(volatile int *p, int v)
int dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%1)\n"
" and %0, %0, %2\n"
@@ -163,6 +170,7 @@ static inline void a_or(volatile int *p, int v)
int dummy;
__asm__ __volatile__(
".set push\n"
+ ".set mips2\n"
".set noreorder\n"
"1: ll %0, 0(%1)\n"
" or %0, %0, %2\n"
diff --git a/arch/mips/bits/alltypes.h.sh b/arch/mips/bits/alltypes.h.sh
index a5357708..c909bc37 100755
--- a/arch/mips/bits/alltypes.h.sh
+++ b/arch/mips/bits/alltypes.h.sh
@@ -18,7 +18,7 @@ union \1 \2;\
TYPEDEF unsigned size_t;
TYPEDEF int ssize_t;
-TYPEDEF long ptrdiff_t;
+TYPEDEF int ptrdiff_t;
TYPEDEF __builtin_va_list va_list;
diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h
index 868ce0fe..6c51bab9 100644
--- a/arch/mips/bits/syscall.h
+++ b/arch/mips/bits/syscall.h
@@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
+#define __SYSCALL_SSLEN 16
+
long (__syscall)(long, ...);
static inline long __syscall0(long n)
diff --git a/arch/x86_64/bits/syscall.h b/arch/x86_64/bits/syscall.h
index 61a67a70..567cfcb7 100644
--- a/arch/x86_64/bits/syscall.h
+++ b/arch/x86_64/bits/syscall.h
@@ -1,6 +1,8 @@
#define __SYSCALL_LL_E(x) (x)
#define __SYSCALL_LL_O(x) (x)
+#define __SYSCALL_SSLEN 8
+
static inline long __syscall0(long __n)
{
unsigned long __ret;