aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-04-26 22:25:11 +0200
committerMathias Kresin <dev@kresin.me>2018-04-27 21:34:18 +0200
commit3877550114c37be4dfcb6dce7f28ef5400529326 (patch)
tree79b9e6f140ac4ebed0a520c6cc39b57d7ce16add /target/linux/sunxi
parent25f47c7bf938fd934575015fd032d0145806c3f7 (diff)
downloadupstream-3877550114c37be4dfcb6dce7f28ef5400529326.tar.gz
upstream-3877550114c37be4dfcb6dce7f28ef5400529326.tar.bz2
upstream-3877550114c37be4dfcb6dce7f28ef5400529326.zip
arm64: enable harden branch predictor
Enable the harden branch predictor for arm64 as it is recommend. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/sunxi')
-rw-r--r--target/linux/sunxi/cortexa53/config-default2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/sunxi/cortexa53/config-default b/target/linux/sunxi/cortexa53/config-default
index ef67c0ea16..2d9dd0191a 100644
--- a/target/linux/sunxi/cortexa53/config-default
+++ b/target/linux/sunxi/cortexa53/config-default
@@ -55,6 +55,7 @@ CONFIG_FRAME_POINTER=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_CSUM=y
CONFIG_GENERIC_IRQ_MIGRATION=y
+CONFIG_HARDEN_BRANCH_PREDICTOR=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_KASAN=y
@@ -103,4 +104,5 @@ CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SUN50I_A64_CCU=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_THREAD_INFO_IN_TASK=y
+CONFIG_UNMAP_KERNEL_AT_EL0=y
CONFIG_VMAP_STACK=y