dslinux/linux-2.6.x/arch/arm/lib strncpy_from_user.S
amadeus
dslinux_amadeus at user.in-berlin.de
Thu Aug 17 12:30:01 CEST 2006
Update of /cvsroot/dslinux/dslinux/linux-2.6.x/arch/arm/lib
In directory antilope:/tmp/cvs-serv13746/linux-2.6.x/arch/arm/lib
Modified Files:
strncpy_from_user.S
Log Message:
8bit write cleanup
Index: strncpy_from_user.S
===================================================================
RCS file: /cvsroot/dslinux/dslinux/linux-2.6.x/arch/arm/lib/strncpy_from_user.S,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- strncpy_from_user.S 20 Feb 2006 16:31:28 -0000 1.2
+++ strncpy_from_user.S 17 Aug 2006 10:29:59 -0000 1.3
@@ -7,6 +7,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
+#include <linux/config.h>
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/errno.h>
@@ -26,8 +27,14 @@
1: subs r2, r2, #1
USER( ldrplbt r3, [r1], #1)
bmi 2f
+#ifdef CONFIG_NDS_ROM8BIT
+ teq r3, #0
+ swpb r3, r3, [r0]
+ add r0, r0, #1
+#else
strb r3, [r0], #1
teq r3, #0
+#endif
bne 1b
sub r1, r1, #1 @ take NUL character out of count
2: sub r0, r1, ip
More information about the dslinux-commit
mailing list