[PATCH] 2.5.48 s390 (9/16): ebcdic conversion bug.

From: Martin Schwidefsky (schwidefsky@de.ibm.com)
Date: Mon Nov 18 2002 - 14:20:45 EST


Fix ebcdic conversion for strings of n*256 + 1 characters.

diff -urN linux-2.5.48/include/asm-s390/ebcdic.h linux-2.5.48-s390/include/asm-s390/ebcdic.h
--- linux-2.5.48/include/asm-s390/ebcdic.h Mon Nov 18 05:29:32 2002
+++ linux-2.5.48-s390/include/asm-s390/ebcdic.h Mon Nov 18 20:11:44 2002
@@ -32,7 +32,7 @@
                 "0: tr 0(256,%0),0(%2)\n"
                 " la %0,256(%0)\n"
                 "1: ahi %1,-256\n"
- " jp 0b\n"
+ " jnm 0b\n"
                 " ex %1,0(1)"
                 : "+&a" (addr), "+&a" (nr)
                 : "a" (codepage) : "cc", "memory", "1" );
diff -urN linux-2.5.48/include/asm-s390x/ebcdic.h linux-2.5.48-s390/include/asm-s390x/ebcdic.h
--- linux-2.5.48/include/asm-s390x/ebcdic.h Mon Nov 18 05:29:56 2002
+++ linux-2.5.48-s390/include/asm-s390x/ebcdic.h Mon Nov 18 20:11:44 2002
@@ -32,7 +32,7 @@
                 "0: tr 0(256,%0),0(%2)\n"
                 " la %0,256(%0)\n"
                 "1: ahi %1,-256\n"
- " jp 0b\n"
+ " jnm 0b\n"
                 " ex %1,0(1)"
                 : "+&a" (addr), "+&a" (nr)
                 : "a" (codepage) : "cc", "memory", "1" );

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:24 EST