ARM: 8610/1: V7M: Add dsb before jumping in handler mode
authorTorgue Alexandre <alexandre.torgue@st.com>
Wed, 31 Aug 2016 08:14:14 +0000 (09:14 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 6 Sep 2016 14:51:09 +0000 (15:51 +0100)
commit8e02676ffa6906a97de7f90772e9cdcb75ea6743
tree56f3f1c122b4a9218eedd45d952211377b96a5a0
parent6a8146f420be2e59cf511c5a046b762142ff201d
ARM: 8610/1: V7M: Add dsb before jumping in handler mode

According to ARM AN321 (section 4.12):

"If the vector table is in writable memory such as SRAM, either relocated
by VTOR or a device dependent memory remapping mechanism, then
architecturally a memory barrier instruction is required after the vector
table entry is updated, and if the exception is to be activated
immediately"

Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-v7m.S