]> git.hungrycats.org Git - linux/commit
[ARM PATCH] 1881/1: Illegal strex instruction generated by gcc
authorCatalin Marinas <catalin.marinas@com.rmk.(none)>
Sat, 15 May 2004 16:13:48 +0000 (17:13 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sat, 15 May 2004 16:13:48 +0000 (17:13 +0100)
commit2b01a2d3e0b08ea3f394fd02afec82845e58a114
tree6ab0bb3e62816af427fdd76c90b23ef0774799f7
parent34dadab400cc8811e1ae96d4c7b1f196dc4758f2
[ARM PATCH] 1881/1: Illegal strex instruction generated by gcc

Patch from Catalin Marinas

The _raw_write_(try)lock functions in include/asm-arm/spinlock.h

should use the early clobber modifier (&) for the "tmp" register.

A newer compiler (gcc-3.4.0) generates an "strexeq %0, %1, [%2]"

instruction where %0 is the same as %2, which is illegal.
include/asm-arm/spinlock.h