Commit 18241bcb authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] i386: add missing bitop.h memory clobbers

From: Andi Kleen <ak@muc.de>

Add missing memory clobbers to find_first_bit() and find_first_zero_bit().
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6d4bf8d1
...@@ -290,7 +290,7 @@ static __inline__ int find_first_zero_bit(const unsigned long *addr, unsigned si ...@@ -290,7 +290,7 @@ static __inline__ int find_first_zero_bit(const unsigned long *addr, unsigned si
"shll $3,%%edi\n\t" "shll $3,%%edi\n\t"
"addl %%edi,%%edx" "addl %%edi,%%edx"
:"=d" (res), "=&c" (d0), "=&D" (d1), "=&a" (d2) :"=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; return res;
} }
...@@ -318,7 +318,7 @@ static __inline__ int find_first_bit(const unsigned long *addr, unsigned size) ...@@ -318,7 +318,7 @@ static __inline__ int find_first_bit(const unsigned long *addr, unsigned size)
"shll $3,%%edi\n\t" "shll $3,%%edi\n\t"
"addl %%edi,%%eax" "addl %%edi,%%eax"
:"=a" (res), "=&c" (d0), "=&D" (d1) :"=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; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment