Commit 36d827d1 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Linus Torvalds

[PATCH] s390: ebcdic conversion bug.

Fix ebcdic conversion for strings of n*256 + 1 characters.
parent 0d260ed9
...@@ -32,7 +32,7 @@ void codepage_convert(const __u8 *codepage, volatile __u8 * addr, int nr) ...@@ -32,7 +32,7 @@ void codepage_convert(const __u8 *codepage, volatile __u8 * addr, int nr)
"0: tr 0(256,%0),0(%2)\n" "0: tr 0(256,%0),0(%2)\n"
" la %0,256(%0)\n" " la %0,256(%0)\n"
"1: ahi %1,-256\n" "1: ahi %1,-256\n"
" jp 0b\n" " jnm 0b\n"
" ex %1,0(1)" " ex %1,0(1)"
: "+&a" (addr), "+&a" (nr) : "+&a" (addr), "+&a" (nr)
: "a" (codepage) : "cc", "memory", "1" ); : "a" (codepage) : "cc", "memory", "1" );
......
...@@ -32,7 +32,7 @@ codepage_convert(const __u8 *codepage, volatile __u8 * addr, unsigned long nr) ...@@ -32,7 +32,7 @@ codepage_convert(const __u8 *codepage, volatile __u8 * addr, unsigned long nr)
"0: tr 0(256,%0),0(%2)\n" "0: tr 0(256,%0),0(%2)\n"
" la %0,256(%0)\n" " la %0,256(%0)\n"
"1: ahi %1,-256\n" "1: ahi %1,-256\n"
" jp 0b\n" " jnm 0b\n"
" ex %1,0(1)" " ex %1,0(1)"
: "+&a" (addr), "+&a" (nr) : "+&a" (addr), "+&a" (nr)
: "a" (codepage) : "cc", "memory", "1" ); : "a" (codepage) : "cc", "memory", "1" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment