patch-2.0.21-2.1.0 linux/include/asm-m68k/segment.h
Next file: linux/include/asm-m68k/semaphore.h
Previous file: linux/include/asm-m68k/resource.h
Back to the patch index
Back to the overall index
- Lines: 68
- Date:
Wed Sep 25 10:47:42 1996
- Orig file:
lx2.0/v2.0.21/linux/include/asm-m68k/segment.h
- Orig date:
Thu May 16 09:05:11 1996
diff -u --recursive --new-file lx2.0/v2.0.21/linux/include/asm-m68k/segment.h linux/include/asm-m68k/segment.h
@@ -138,18 +138,18 @@
tmp = n;
n >>= 2;
if (n != 0)
- __asm__ ("1:\t"
+ __asm__ __volatile__ ("1:\t"
"movel %1@+,%/d0\n\t"
"movesl %/d0,%2@+\n\t"
- "dbra %0,1b\n\t"
- "clrw %0\n\t"
- "subql #1,%0\n\t"
+ "dbra %0,1b\n\t"
+ "clrw %0\n\t"
+ "subql #1,%0\n\t"
"bccs 1b\n\t"
- : "=d" (n), "=a" (from), "=a" (to)
+ : "=d" (n), "=a" (from), "=a" (to)
: "0" (n-1), "1" (from), "2" (to)
: "d0", "memory");
if (tmp & 2)
- __asm__ ("movew %0@+,%/d0\n\t"
+ __asm__ __volatile__ ("movew %0@+,%/d0\n\t"
"movesw %/d0,%1@+\n\t"
: "=a" (from), "=a" (to)
: "0" (from), "1" (to)
@@ -159,7 +159,7 @@
"movesb %/d0,%1@\n\t"
: /* no outputs */
: "a" (from), "a" (to)
- : "d0", "memory");
+ : "d0", "memory");
}
static inline void __constant_memcpy_tofs(void * to, const void * from, unsigned long n)
@@ -234,18 +234,18 @@
tmp = n;
n >>= 2;
if (n != 0)
- __asm__ ("1:\t"
+ __asm__ __volatile__ ("1:\t"
"movesl %1@+,%/d0\n\t"
"movel %/d0,%2@+\n\t"
- "dbra %0,1b\n\t"
- "clrw %0\n\t"
- "subql #1,%0\n\t"
+ "dbra %0,1b\n\t"
+ "clrw %0\n\t"
+ "subql #1,%0\n\t"
"bccs 1b\n\t"
- : "=d" (n), "=a" (from), "=a" (to)
+ : "=d" (n), "=a" (from), "=a" (to)
: "0" (n-1), "1" (from), "2" (to)
: "d0", "memory");
if (tmp & 2)
- __asm__ ("movesw %0@+,%/d0\n\t"
+ __asm__ __volatile__ ("movesw %0@+,%/d0\n\t"
"movew %/d0,%1@+\n\t"
: "=a" (from), "=a" (to)
: "0" (from), "1" (to)
@@ -255,7 +255,7 @@
"moveb %/d0,%1@\n\t"
: /* no outputs */
: "a" (from), "a" (to)
- : "d0", "memory");
+ : "d0", "memory");
}
static inline void __constant_memcpy_fromfs(void * to, const void * from, unsigned long n)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov