ARM: 5757/1: Thumb-2: Correct "mov.w pc, lr" instruction which is unpredictable
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 12 Oct 2009 16:31:20 +0000 (17:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 14 Oct 2009 09:33:05 +0000 (10:33 +0100)
commita771fe6e4e3e58f2056823ef9c30a554ec48f453
tree06f60c5b96bd4b7c1690f86b0e44d74f6e3ffcc9
parent80f506918fdaaca6b574ba931536a58ce015c7be
ARM: 5757/1: Thumb-2: Correct "mov.w pc, lr" instruction which is unpredictable

The 32-bit wide variant of "mov pc, reg" in Thumb-2 is unpredictable
causing improper handling of the undefined instructions not caught by
the kernel. This patch adds a movw_pc macro for such situations
(currently only used in call_fpe).

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-header.S