Title: [5830] trunk/arch/blackfin/include/asm: Update some inline assembly, tweak some register constraints.
Revision
5830
Author
rgetz
Date
2008-12-05 13:25:32 -0600 (Fri, 05 Dec 2008)

Log Message

Update some inline assembly, tweak some register constraints.

Modified Paths


Diff

Modified: trunk/arch/blackfin/include/asm/bfrom.h (5829 => 5830)


--- trunk/arch/blackfin/include/asm/bfrom.h	2008-12-05 18:08:43 UTC (rev 5829)
+++ trunk/arch/blackfin/include/asm/bfrom.h	2008-12-05 19:25:32 UTC (rev 5830)
@@ -43,6 +43,11 @@
 static inline void bfrom_SoftReset(void *new_stack)
 {
 	while (1)
+		/*
+		 * We don't declare the SP as clobbered on purpose, since
+		 * it confuses the heck out of the compiler, and this function
+		 * never returns
+		 */
 		__asm__ __volatile__(
 			"sp = %[stack];"
 			"jump (%[bfrom_syscontrol]);"

Modified: trunk/arch/blackfin/include/asm/system.h (5829 => 5830)


--- trunk/arch/blackfin/include/asm/system.h	2008-12-05 18:08:43 UTC (rev 5829)
+++ trunk/arch/blackfin/include/asm/system.h	2008-12-05 19:25:32 UTC (rev 5830)
@@ -44,10 +44,10 @@
 /*
  * Force strict CPU ordering.
  */
-#define nop()  asm volatile ("nop;\n\t"::)
-#define mb()   asm volatile (""   : : :"memory")
-#define rmb()  asm volatile (""   : : :"memory")
-#define wmb()  asm volatile (""   : : :"memory")
+#define nop()  __asm__ __volatile__ ("nop;\n\t" : : )
+#define mb()   __asm__ __volatile__ (""   : : : "memory")
+#define rmb()  __asm__ __volatile__ (""   : : : "memory")
+#define wmb()  __asm__ __volatile__ (""   : : : "memory")
 #define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
 #define read_barrier_depends() 		do { } while(0)
 

Modified: trunk/arch/blackfin/include/asm/thread_info.h (5829 => 5830)


--- trunk/arch/blackfin/include/asm/thread_info.h	2008-12-05 18:08:43 UTC (rev 5829)
+++ trunk/arch/blackfin/include/asm/thread_info.h	2008-12-05 19:25:32 UTC (rev 5830)
@@ -91,7 +91,7 @@
 static inline struct thread_info *current_thread_info(void)
 {
 	struct thread_info *ti;
-      __asm__("%0 = sp;": "=&d"(ti):
+      __asm__("%0 = sp;" : "=da"(ti) :
 	);
 	return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1));
 }
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to