arm: define speculation barrier
authorJeetesh Burman <jburman@nvidia.com>
Wed, 14 Feb 2018 06:20:57 +0000 (11:20 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 10 Apr 2018 05:16:00 +0000 (22:16 -0700)
commit5330e599eb32ed6ee05c45d51d1229d12048842d
tree90c95a5d3df16bb0f551a1c3d89615f952318882
parent9287b6ee863c1183969af0da3f1372967134e1da
arm: define speculation barrier

The instruction sequency "dsb sy" followed by "isb" functions as
a speculation barrier, which prevents the instructions after that
from being speculatively executed.

bug 2039126

Change-Id: I9eaec78aad2ac0f6b690e17698e08c52854eff4c
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1618222
Signed-off-by: James Huang <jamehuang@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1650093
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
(cherry picked from commit f125c60045878513902cac4a084fde9a516eb3e2)
Reviewed-on: https://git-master.nvidia.com/r/1689113
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
arch/arm/include/asm/barrier.h