patch-2.3.7 linux/include/asm-arm/current.h

Next file: linux/include/asm-arm/dma.h
Previous file: linux/include/asm-arm/arch-rpc/ide.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.6/linux/include/asm-arm/current.h linux/include/asm-arm/current.h
@@ -4,17 +4,19 @@
 static inline unsigned long get_sp(void)
 {
 	unsigned long sp;
-	__asm__ ("mov %0,sp" : "=r" (sp));
+	__asm__ ("mov	%0,sp" : "=r" (sp));
 	return sp;
 }
 
+//static inline struct task_struct *get_current(void) __attribute__ (( __const__ ));
+
 static inline struct task_struct *get_current(void)
 {
 	struct task_struct *ts;
-	__asm__ __volatile__("
-	bic	%0, sp, #0x1f00
-	bic	%0, %0, #0x00ff
-	" : "=r" (ts));
+	__asm__ __volatile__ (
+	"bic	%0, sp, #0x1f00		@ get_current
+	bic	%0, %0, #0x00ff" 
+	: "=r" (ts));
 	return ts;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)