patch-2.4.0-test7 linux/include/asm-arm/proc-armo/system.h

Next file: linux/include/asm-arm/proc-armv/assembler.h
Previous file: linux/include/asm-arm/proc-armo/locks.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/include/asm-arm/proc-armo/system.h linux/include/asm-arm/proc-armo/system.h
@@ -77,6 +77,24 @@
 	  : "memory");				\
 	} while(0)
 
+#define __clf()	do {				\
+	unsigned long temp;			\
+	__asm__ __volatile__(			\
+"	mov	%0, pc		@ clf\n"	\
+"	orr	%0, %0, #0x04000000\n"		\
+"	teqp	%0, #0\n"			\
+	: "=r" (temp));				\
+    } while(0)
+
+#define __stf()	do {				\
+	unsigned long temp;			\
+	__asm__ __volatile__(			\
+"	mov	%0, pc		@ stf\n"	\
+"	bic	%0, %0, #0x04000000\n"		\
+"	teqp	%0, #0\n"			\
+	: "=r" (temp));				\
+    } while(0)
+
 /*
  * save current IRQ & FIQ state
  */

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