diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-28 23:18:56 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-28 23:18:56 +0000 |
commit | 4d657aa39d5bcae60c2c11bf8fb66692ddd1c9e7 (patch) | |
tree | 30f3b08741a4d4b98b16bd99ea2757ff715d1c11 /include/asm-i386 | |
parent | eed6b7c84cc33f229f6fecd884d9a22af5bec514 (diff) |
Merge with 2.4.0-test5 final.
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/bitops.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-i386/bitops.h b/include/asm-i386/bitops.h index 53486c977..18454e929 100644 --- a/include/asm-i386/bitops.h +++ b/include/asm-i386/bitops.h @@ -134,7 +134,9 @@ extern __inline__ int find_first_zero_bit(void * addr, unsigned size) if (!size) return 0; - __asm__("movl $-1,%%eax\n\t" + /* This looks at memory. Mark it volatile to tell gcc not to move it around */ + __asm__ __volatile__( + "movl $-1,%%eax\n\t" "xorl %%edx,%%edx\n\t" "repe; scasl\n\t" "je 1f\n\t" |