dslinux/linux-2.6.x/include/asm-arm/arch-nds io.h

amadeus dslinux_amadeus at user.in-berlin.de
Mon Jul 3 22:23:31 CEST 2006


Update of /cvsroot/dslinux/dslinux/linux-2.6.x/include/asm-arm/arch-nds
In directory antilope:/tmp/cvs-serv4071/linux-2.6.x/include/asm-arm/arch-nds

Modified Files:
	io.h 
Log Message:
Add some support for GBA slot 8bit write

Index: io.h
===================================================================
RCS file: /cvsroot/dslinux/dslinux/linux-2.6.x/include/asm-arm/arch-nds/io.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- io.h	20 Feb 2006 20:18:47 -0000	1.1
+++ io.h	3 Jul 2006 20:23:29 -0000	1.2
@@ -1,5 +1,5 @@
 /*
- * include/asm-arm/arch-s3c24a0/io.h
+ * include/asm-arm/arch-nds/io.h
  *
  * $Id$
  *
@@ -42,4 +42,14 @@
 #define iomem_valid_addr(iomem,sz)      (1)
 #define iomem_to_phys(iomem)            (iomem)
 
+/* Redefine raw write byte access as "strb" instruction, so we can use
+   a compiler which transforms each byte write into a swpb */
+#undef __raw_writeb
+#define __raw_writeb(value,address)			\
+({							\
+	__asm__ __volatile__(                           \
+        "strb   %0, [%1]"                               \
+        : : "r" (value), "r" (address));                \
+})
+
 #endif /* __ASM_ARM_ARCH_IO_H */




More information about the dslinux-commit mailing list