Linux MIPS Architecture development
 help / color / mirror / Atom feed
* system.h asm fixes
@ 2002-06-17 18:20 Justin Carlson
  2002-06-17 19:43 ` Daniel Jacobowitz
  2002-06-17 20:44 ` Ralf Baechle
  0 siblings, 2 replies; 8+ messages in thread
From: Justin Carlson @ 2002-06-17 18:20 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

Looks to me like we're missing some proper asm clobber markers:

diff -u -r1.13 system.h
--- system.h	4 Feb 2002 17:35:51 -0000	1.13
+++ system.h	17 Jun 2002 18:18:56 -0000
@@ -41,7 +41,8 @@
 		"__sti"
 		: /* no outputs */
 		: /* no inputs */
-		: "memory");
+		: "$1","memory"
+		);
 }
 
 /*
@@ -73,7 +74,7 @@
 		"__cli"
 		: /* no outputs */
 		: /* no inputs */
-		: "memory");
+		: "$1","memory");
 }
 
 __asm__ (
@@ -110,7 +111,7 @@
 	"__save_and_cli\t%0"						\
 	: "=r" (x)							\
 	: /* no inputs */						\
-	: "memory")
+	: "$1","memory")
 
 __asm__(".macro\t__restore_flags flags\n\t"
 	".set\tpush\n\t"
@@ -136,7 +137,7 @@
 		"__restore_flags\t%0"					\
 		: "=r" (__tmp1)						\
 		: "0" (flags)						\
-		: "memory");						\
+		: "$1","memory");					\
 } while(0)
 
 #ifdef CONFIG_SMP

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-06-19 17:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 18:20 system.h asm fixes Justin Carlson
2002-06-17 19:43 ` Daniel Jacobowitz
2002-06-17 19:58   ` Thiemo Seufer
2002-06-17 20:44 ` Ralf Baechle
2002-06-17 22:36   ` Thiemo Seufer
2002-06-17 22:57     ` Justin Carlson
2002-06-18  0:52     ` Ralf Baechle
2002-06-19 17:16       ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox