public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Bug in asm-i386/rwlock.h
@ 2002-06-04 14:08 Alexey Vyskubov
  0 siblings, 0 replies; only message in thread
From: Alexey Vyskubov @ 2002-06-04 14:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

Hello.

We suppose that include/asm-i386/rwlock.h contains a bug.

Under some circumstances (compiling some external modules + no
optimization + SMP) it's possible to get the following error:

/tmp/ccw7qDe1.s: Assembler messages:
/tmp/ccw7qDe1.s:6815: Error: bad expression
/tmp/ccw7qDe1.s:6815: Error: missing ')'
/tmp/ccw7qDe1.s:6815: Error: missing ')'
/tmp/ccw7qDe1.s:6815: Error: junk `ebx))' after expression

We believe that it's a typo in include/asm-i386/rwlock.h

--- include/asm-i386/rwlock.h.orig      Tue Jun  4 16:32:38 2002
+++ include/asm-i386/rwlock.h   Tue Jun  4 16:33:02 2002
@@ -61,7 +61,7 @@
                     ::"a" (rw) : "memory")
 
 #define __build_write_lock_const(rw, helper) \
-       asm volatile(LOCK "subl $" RW_LOCK_BIAS_STR ",(%0)\n\t" \
+       asm volatile(LOCK "subl $" RW_LOCK_BIAS_STR ",%0\n\t" \
                     "jnz 2f\n" \
                     "1:\n" \
                     ".section .text.lock,\"ax\"\n" \

-- 
Alexey Vyskubov
Dmitry Kasatkin
Nokia Research Center / Helsinki

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

only message in thread, other threads:[~2002-06-04 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-04 14:08 Bug in asm-i386/rwlock.h Alexey Vyskubov

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