ARM: 7502/1: contextidr: avoid using bfi instruction during notifier
authorWill Deacon <will.deacon@arm.com>
Fri, 24 Aug 2012 14:21:52 +0000 (15:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 25 Aug 2012 08:15:57 +0000 (09:15 +0100)
commitae3790b8a916429be5fa61da95992929e6b34d64
treec3fb5e0b4ef1221412a50e34999e56ea6af38df7
parentdbece45894d3ab1baac15a96dc4e1e8e23f64a93
ARM: 7502/1: contextidr: avoid using bfi instruction during notifier

The bfi instruction is not available on ARMv6, so instead use an and/orr
sequence in the contextidr_notifier. This gets rid of the assembler
error:

  Assembler messages:
  Error: selected processor does not support ARM mode `bfi r3,r2,#0,#8'

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/context.c