patch-2.1.17 linux/include/asm-m68k/uaccess.h
Next file: linux/include/asm-m68k/zorro.h
Previous file: linux/include/asm-m68k/string.h
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Fri Dec 20 11:20:03 1996
- Orig file:
v2.1.16/linux/include/asm-m68k/uaccess.h
- Orig date:
Fri Nov 22 18:28:21 1996
diff -u --recursive --new-file v2.1.16/linux/include/asm-m68k/uaccess.h linux/include/asm-m68k/uaccess.h
@@ -421,7 +421,7 @@
case 3:
__copy_from_user_big(to, from, n,
/* fixup */
- "1: addql #2,%2"
+ "1: addql #2,%2\n"
"2: addql #1,%2",
/* copy */
"3: movesw (%1)+,%%d0\n"
@@ -660,7 +660,7 @@
case 3:
__copy_to_user_big(to, from, n,
/* fixup */
- "1: addql #2,%2"
+ "1: addql #2,%2\n"
"2: addql #1,%2",
/* copy */
" movew (%1)+,%%d0\n"
@@ -729,13 +729,12 @@
*/
static inline long strlen_user(const char * src)
{
- long res = (long) src;
+ long res = -(long) src;
__asm__ __volatile__
("1: movesb (%1)+,%%d0\n"
"12:tstb %%d0\n"
" jne 1b\n"
- " subl %1,%0\n"
- " negl %0\n"
+ " addl %1,%0\n"
"2:\n"
".section .fixup,\"ax\"\n"
" .even\n"
@@ -748,7 +747,7 @@
".text"
: "=d"(res), "=a"(src)
: "i"(0), "0"(res), "1"(src)
- : "d0", "memory");
+ : "d0");
return res;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov