patch-2.2.0-pre1 linux/include/video/fbcon.h
Next file: linux/init/main.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Sun Dec 27 10:50:12 1998
- Orig file:
v2.1.132/linux/include/video/fbcon.h
- Orig date:
Tue Dec 22 14:16:59 1998
diff -u --recursive --new-file v2.1.132/linux/include/video/fbcon.h linux/include/video/fbcon.h
@@ -441,6 +441,7 @@
static __inline__ void fast_memmove(void *d, const void *s, size_t count)
{
+ int d0, d1, d2, d3;
if (d < s) {
__asm__ __volatile__ (
"cld\n\t"
@@ -452,9 +453,9 @@
"movsw\n"
"2:\trep\n\t"
"movsl"
- : /* no output */
- :"c"(count),"D"((long)d),"S"((long)s)
- :"cx","di","si","memory");
+ : "=&c" (d0), "=&D" (d1), "=&S" (d2)
+ :"0"(count),"1"((long)d),"2"((long)s)
+ :"memory");
} else {
__asm__ __volatile__ (
"std\n\t"
@@ -475,9 +476,9 @@
"2:\trep\n\t"
"movsl\n\t"
"cld"
- : /* no output */
- :"c"(count),"D"(count-4+(long)d),"S"(count-4+(long)s)
- :"ax","cx","di","si","memory");
+ : "=&c" (d0), "=&D" (d1), "=&S" (d2), "=&a" (d3)
+ :"0"(count),"1"(count-4+(long)d),"2"(count-4+(long)s)
+ :"memory");
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov