mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* fix asm constraints in ffs
@ 2003-03-24 16:41 davej
  0 siblings, 0 replies; only message in thread
From: davej @ 2003-03-24 16:41 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Another brought forward from 2.4.

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/include/asm-i386/bitops.h linux-2.5/include/asm-i386/bitops.h
--- bk-linus/include/asm-i386/bitops.h	2003-03-08 09:57:46.000000000 +0000
+++ linux-2.5/include/asm-i386/bitops.h	2003-03-17 23:42:49.000000000 +0000
@@ -458,7 +458,7 @@ static __inline__ int ffs(int x)
 	__asm__("bsfl %1,%0\n\t"
 		"jnz 1f\n\t"
 		"movl $-1,%0\n"
-		"1:" : "=r" (r) : "g" (x));
+		"1:" : "=r" (r) : "rm" (x));
 	return r+1;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-24 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 16:41 fix asm constraints in ffs davej

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®