Messages in this thread Patch in this message | | | Subject | [PATCH] rw-semaphore asm constraints patch fix | Date | Mon, 08 Apr 2002 13:43:58 +0100 | From | David Howells <> |
| |
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/
| |