瀏覽代碼

fixup general __syscall breakage introduced in x32 port

the reordering of headers caused some risc archs to not see
the __syscall declaration anymore.
this caused build errors on mips with any compiler,
and on arm and microblaze with clang.

we now declare it locally just like the powerpc port does.
rofl0r 11 年之前
父節點
當前提交
dbed392410
共有 3 個文件被更改,包括 6 次插入0 次删除
  1. 2 0
      arch/arm/syscall_arch.h
  2. 2 0
      arch/microblaze/syscall_arch.h
  3. 2 0
      arch/mips/syscall_arch.h

+ 2 - 0
arch/arm/syscall_arch.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))
 
+long (__syscall)(long, ...);
+
 #ifndef __clang__
 
 #define __asm_syscall(...) do { \

+ 2 - 0
arch/microblaze/syscall_arch.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))
 
+long (__syscall)(long, ...);
+
 #ifndef __clang__
 
 static __inline long __syscall0(long n)

+ 2 - 0
arch/mips/syscall_arch.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))
 
+long (__syscall)(long, ...);
+
 #ifndef __clang__
 
 #define __asm_syscall(...) do { \