summaryrefslogtreecommitdiff
path: root/include/memory
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-10-26 21:42:08 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-10-29 14:04:27 +0400
commit7629a9f661f72eb383fb896e59efea1eac74e882 (patch)
tree1983cc4138765d367f91f5beb2d656418a16d8bc /include/memory
parent39141ddfb63a664f26d3f42f64ee386e879b492c (diff)
downloadlinux-7629a9f661f72eb383fb896e59efea1eac74e882.tar.xz
ARM: 7567/1: io: avoid GCC's offsettable addressing modes for halfword accesses
Using the 'o' memory constraint in inline assembly can result in GCC generating invalid immediate offsets for memory access instructions with reduced addressing capabilities (i.e. smaller than 12-bit immediate offsets): http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54983 As there is no constraint to specify the exact addressing mode we need, fallback to using 'Q' exclusively for halfword I/O accesses. This may emit an additional add instruction (using an extra register) in order to construct the address but it will always be accepted by GAS. Reported-by: Bastian Hecht <hechtb@googlemail.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/memory')
0 files changed, 0 insertions, 0 deletions