[uClibc-cvs] uClibc/ldso/ldso/powerpc ld_syscalls.h,1.3,1.4
Erik Andersen
andersen at uclibc.org
Sun Jun 15 01:08:47 UTC 2003
Update of /var/cvs/uClibc/ldso/ldso/powerpc
In directory winder:/tmp/cvs-serv16542/ldso/ldso/powerpc
Modified Files:
ld_syscalls.h
Log Message:
Implement syscall() for powerpc. Fixup syscall code so
it compiles properly with gcc 3.3.
-Erik
Index: ld_syscalls.h
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/powerpc/ld_syscalls.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ld_syscalls.h 8 Aug 2002 16:29:18 -0000 1.3
+++ ld_syscalls.h 15 Jun 2003 01:08:43 -0000 1.4
@@ -32,7 +32,8 @@
#undef __syscall_clobbers
#define __syscall_clobbers \
- "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12"
+ "r9", "r10", "r11", "r12"
+ //"r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12"
#undef _syscall0
#define _syscall0(type,name) \
@@ -49,7 +50,7 @@
"mfcr %1 " \
: "=&r" (__sc_3), "=&r" (__sc_0) \
: "0" (__sc_3), "1" (__sc_0) \
- : __syscall_clobbers); \
+ : "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12" ); \
__sc_ret = __sc_3; \
__sc_err = __sc_0; \
} \
@@ -72,7 +73,7 @@
"mfcr %1 " \
: "=&r" (__sc_3), "=&r" (__sc_0) \
: "0" (__sc_3), "1" (__sc_0) \
- : __syscall_clobbers); \
+ : "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12" ); \
__sc_ret = __sc_3; \
__sc_err = __sc_0; \
} \
@@ -98,7 +99,7 @@
: "=&r" (__sc_3), "=&r" (__sc_0) \
: "0" (__sc_3), "1" (__sc_0), \
"r" (__sc_4) \
- : __syscall_clobbers); \
+ : "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12" ); \
__sc_ret = __sc_3; \
__sc_err = __sc_0; \
} \
@@ -127,7 +128,7 @@
: "0" (__sc_3), "1" (__sc_0), \
"r" (__sc_4), \
"r" (__sc_5) \
- : __syscall_clobbers); \
+ : "r6", "r7", "r8", "r9", "r10", "r11", "r12" ); \
__sc_ret = __sc_3; \
__sc_err = __sc_0; \
} \
@@ -159,7 +160,7 @@
"r" (__sc_4), \
"r" (__sc_5), \
"r" (__sc_6) \
- : __syscall_clobbers); \
+ : "r7", "r8", "r9", "r10", "r11", "r12" ); \
__sc_ret = __sc_3; \
__sc_err = __sc_0; \
} \
@@ -194,7 +195,7 @@
"r" (__sc_5), \
"r" (__sc_6), \
"r" (__sc_7) \
- : __syscall_clobbers); \
+ : "r8", "r9", "r10", "r11", "r12" ); \
__sc_ret = __sc_3; \
__sc_err = __sc_0; \
} \
@@ -233,7 +234,7 @@
"r" (__sc_6), \
"r" (__sc_7), \
"r" (__sc_8) \
- : __syscall_clobbers); \
+ : "r9", "r10", "r11", "r12" ); \
__sc_ret = __sc_3; \
__sc_err = __sc_0; \
} \
More information about the uClibc-cvs
mailing list