]> git.hungrycats.org Git - linux/commitdiff
[PATCH] i386: add missing bitop.h memory clobbers
authorAndrew Morton <akpm@osdl.org>
Tue, 1 Jun 2004 01:51:17 +0000 (18:51 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 1 Jun 2004 01:51:17 +0000 (18:51 -0700)
From: Andi Kleen <ak@muc.de>

Add missing memory clobbers to find_first_bit() and find_first_zero_bit().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/bitops.h

index 114ac7ac36809cd68eeb0135681c3ece0f1d9d8e..2c6a7bb1e0cee1e0565bb1a57d927048081e4d67 100644 (file)
@@ -290,7 +290,7 @@ static __inline__ int find_first_zero_bit(const unsigned long *addr, unsigned si
                "shll $3,%%edi\n\t"
                "addl %%edi,%%edx"
                :"=d" (res), "=&c" (d0), "=&D" (d1), "=&a" (d2)
-               :"1" ((size + 31) >> 5), "2" (addr), "b" (addr));
+               :"1" ((size + 31) >> 5), "2" (addr), "b" (addr) : "memory");
        return res;
 }
 
@@ -318,7 +318,7 @@ static __inline__ int find_first_bit(const unsigned long *addr, unsigned size)
                "shll $3,%%edi\n\t"
                "addl %%edi,%%eax"
                :"=a" (res), "=&c" (d0), "=&D" (d1)
-               :"1" ((size + 31) >> 5), "2" (addr), "b" (addr));
+               :"1" ((size + 31) >> 5), "2" (addr), "b" (addr) : "memory");
        return res;
 }