Skip to contentSkip to conversation

Fix typo in x86_64 ffnz

PATCH In review Jan Kiszka 2 participants 2 messages Apr 23, 2007 – Apr 24, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Fix typo in x86_64 ffnz

Grrr...

asm-x86_64/hal.h +1 -1
Index: include/asm-x86_64/hal.h
===================================================================
@@ -30,7 +30,7 @@ typedef unsigned long rthal_time_t;
 
 static inline __attribute_const__ unsigned long ffnz(unsigned long ul)
 {
-	__asm__("bsrq %1, %0":"=r"(ul):"rm"(ul));
+	__asm__("bsfq %1, %0":"=r"(ul):"rm"(ul));
 	return ul;
 }
 
ChangeLog +5 -0
Index: ChangeLog
===================================================================
@@ -1,3 +1,8 @@
+2007-04-23  Jan Kiszka  <[email protected]>
+
+	* include/asm-x86_64/hal.h (ffnz): Fix typo that inverted the search
+	direction.
+
 2007-04-19  Philippe Gerum  <[email protected]>
 
 	* ksrc/skins/vrtx/module.c, ksrc/nucleus/pipe.c,
#1 lore raw
Quoted 2 lines · Jan Kiszka

Grrr...

Fixed. Mglmgmmm...

Quoted 27 lines

Index: include/asm-x86_64/hal.h
===================================================================

asm-x86_64/hal.h +1 -1
@@ -30,7 +30,7 @@ typedef unsigned long rthal_time_t;
 
 static inline __attribute_const__ unsigned long ffnz(unsigned long ul)
 {
-	__asm__("bsrq %1, %0":"=r"(ul):"rm"(ul));
+	__asm__("bsfq %1, %0":"=r"(ul):"rm"(ul));
 	return ul;
 }
 

Index: ChangeLog
===================================================================

ChangeLog +5 -0
@@ -1,3 +1,8 @@
+2007-04-23  Jan Kiszka  <[email protected]>
+
+	* include/asm-x86_64/hal.h (ffnz): Fix typo that inverted the search
+	direction.
+
 2007-04-19  Philippe Gerum  <[email protected]>
 
 	* ksrc/skins/vrtx/module.c, ksrc/nucleus/pipe.c,
Signature · 1 line
Philippe.