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

Martin Schwidefsky (schwidefsky@de.ibm.com)
Mon, 18 Nov 2002 20:20:45 +0100


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/