summaryrefslogtreecommitdiff
path: root/arch/arch-x86_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arch-x86_64.h')
-rw-r--r--arch/arch-x86_64.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arch-x86_64.h b/arch/arch-x86_64.h
index 6dbeee06..f2dcf497 100644
--- a/arch/arch-x86_64.h
+++ b/arch/arch-x86_64.h
@@ -33,9 +33,9 @@
#define read_barrier() __asm__ __volatile__("lfence":::"memory")
#define write_barrier() __asm__ __volatile__("sfence":::"memory")
-static inline unsigned int arch_ffz(unsigned int bitmask)
+static inline unsigned long arch_ffz(unsigned long bitmask)
{
- __asm__("bsfl %1,%0" :"=r" (bitmask) :"r" (~bitmask));
+ __asm__("bsf %1,%0" :"=r" (bitmask) :"r" (~bitmask));
return bitmask;
}