patch-2.4.19 linux-2.4.19/include/asm-s390/ebcdic.h
Next file: linux-2.4.19/include/asm-s390/ide.h
Previous file: linux-2.4.19/include/asm-s390/debug.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/asm-s390/ebcdic.h
- Orig date:
Wed Jul 4 11:50:39 2001
diff -urN linux-2.4.18/include/asm-s390/ebcdic.h linux-2.4.19/include/asm-s390/ebcdic.h
@@ -24,7 +24,7 @@
extern __inline__
void codepage_convert(const __u8 *codepage, volatile __u8 * addr, int nr)
{
- if (nr <= 0)
+ if (nr-- <= 0)
return;
__asm__ __volatile__(
" bras 1,1f\n"
@@ -34,7 +34,7 @@
"1: ahi %1,-256\n"
" jp 0b\n"
" ex %1,0(1)"
- : "+&a" (addr), "+&a" (nr-1)
+ : "+&a" (addr), "+&a" (nr)
: "a" (codepage) : "cc", "memory", "1" );
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)