[uClibc-cvs] CVS uClibc/libc/sysdeps/linux/mips/bits

CVS User andersen andersen at codepoet.org
Tue Oct 19 19:24:14 UTC 2004


Update of /var/cvs/uClibc/libc/sysdeps/linux/mips/bits
In directory nail:/tmp/cvs-serv21643

Modified Files:
	syscalls.h 
Log Message:
Atsushi Nemoto writes:

In a recent post to linux-mips ML (and libc-alpha ML), a problem with
inline syscalls was reported.

http://www.linux-mips.org/archives/linux-mips/2004-10/msg00142.html

It seems uClibc should be fixed also for newer gcc.  Here is a patch.



--- /var/cvs/uClibc/libc/sysdeps/linux/mips/bits/syscalls.h	2002/09/05 05:29:27	1.7
+++ /var/cvs/uClibc/libc/sysdeps/linux/mips/bits/syscalls.h	2004/10/19 19:24:13	1.8
@@ -30,7 +30,7 @@
                   : "=r" (__res), "=r" (__err) \
                   : "i" (__NR_##name) \
                   : "$2","$7","$8","$9","$10","$11","$12","$13","$14","$15", \
-		    "$24"); \
+		    "$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \
@@ -52,7 +52,7 @@
 		  "move\t%1, $7" \
 		  : "=r" (__res), "=r" (__err) \
 		  : "i" (__NR_##name),"r" ((long)(a)) \
-		  : "$2","$4","$7","$8","$9","$10","$11","$12","$13","$14","$15","$24"); \
+		  : "$2","$4","$7","$8","$9","$10","$11","$12","$13","$14","$15","$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \
@@ -73,7 +73,7 @@
                   : "i" (__NR_##name),"r" ((long)(a)), \
                                       "r" ((long)(b)) \
                   : "$2","$4","$5","$7","$8","$9","$10","$11","$12","$13", \
-		    "$14","$15", "$24"); \
+		    "$14","$15", "$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \
@@ -96,7 +96,7 @@
                                       "r" ((long)(b)), \
                                       "r" ((long)(c)) \
                   : "$2","$4","$5","$6","$7","$8","$9","$10","$11","$12", \
-		    "$13","$14","$15","$24"); \
+		    "$13","$14","$15","$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \
@@ -121,7 +121,7 @@
                                       "r" ((long)(c)), \
                                       "r" ((long)(d)) \
                   : "$2","$4","$5","$6","$7","$8","$9","$10","$11","$12", \
-		    "$13","$14","$15","$24"); \
+		    "$13","$14","$15","$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \
@@ -151,7 +151,7 @@
                                       "r" ((long)(d)), \
                                       "m" ((long)(e)) \
                   : "$2","$4","$5","$6","$7","$8","$9","$10","$11","$12", \
-                    "$13","$14","$15","$24"); \
+                    "$13","$14","$15","$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \
@@ -184,7 +184,7 @@
                                       "m" ((long)(e)), \
                                       "m" ((long)(f)) \
                   : "$2","$3","$4","$5","$6","$7","$8","$9","$10","$11", \
-                    "$12","$13","$14","$15","$24"); \
+                    "$12","$13","$14","$15","$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \
@@ -220,7 +220,7 @@
                                       "m" ((long)(f)), \
                                       "m" ((long)(g)) \
                   : "$2","$3","$4","$5","$6","$7","$8","$9","$10","$11", \
-                    "$12","$13","$14","$15","$24"); \
+                    "$12","$13","$14","$15","$24","memory"); \
 if (__err == 0) \
 	return (type) __res; \
 __set_errno(__res); \



More information about the uClibc-cvs mailing list