diff options
author | nyan <nyan@FreeBSD.org> | 1999-11-16 12:28:28 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 1999-11-16 12:28:28 +0000 |
commit | fe1f8fe49a616d92041abe2b0163e23a1862752d (patch) | |
tree | 1ae0367b8d4a357a623100696be2ecc8b13d084d /sys/i386/isa/bs | |
parent | dd5693237d76797f8c7fb54263c9a72eac5cd081 (diff) | |
download | FreeBSD-src-fe1f8fe49a616d92041abe2b0163e23a1862752d.zip FreeBSD-src-fe1f8fe49a616d92041abe2b0163e23a1862752d.tar.gz |
Fixed to compile bs driver with gcc 2.95.2.
Diffstat (limited to 'sys/i386/isa/bs')
-rw-r--r-- | sys/i386/isa/bs/bsif.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/i386/isa/bs/bsif.h b/sys/i386/isa/bs/bsif.h index 193e2f9..4311894 100644 --- a/sys/i386/isa/bs/bsif.h +++ b/sys/i386/isa/bs/bsif.h @@ -225,10 +225,13 @@ memcopy(from, to, len) void *from, *to; register size_t len; { - len >>= 2; - __asm __volatile("cld\n\trep\n\tmovsl" : : - "S" (from), "D" (to), "c" (len) : - "%esi", "%edi", "%ecx"); + __asm __volatile(" \n\ + cld \n\ + rep \n\ + movsl" : + "=D" (to), "=c" (len), "=S" (from) : + "0" (to), "1" (len), "2" (from) : + "memory", "cc"); } #endif /* __FreeBSD__ */ |