lkml.org 
[lkml]   [2002]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] rw-semaphore asm constraints patch fix
Date
From
Hi Linus,

The attached patch should fix the compile error that asm-i386/rwsem.h causes
with old gcc's whilst maintaining the asm constraints correctly.

David

diff -Nru a/include/asm-i386/rwsem.h b/include/asm-i386/rwsem.h
--- a/include/asm-i386/rwsem.h Fri Apr 5 16:56:35 2002
+++ b/include/asm-i386/rwsem.h Fri Apr 5 16:56:35 2002
@@ -164,7 +164,7 @@
" jmp 1b\n"
LOCK_SECTION_END
"# ending __up_read\n"
- : /*"+m"(sem->count),*/ "+d"(tmp)
- : "a"(sem)
+ : "=m"(sem->count), "=d"(tmp)
+ : "0"(sem->count), "1"(tmp), "a"(sem)
: "memory", "cc");
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.036 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site