aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/armvirt
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/armvirt
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/armvirt')
-rw-r--r--target/linux/armvirt/64/config-default2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/armvirt/64/config-default b/target/linux/armvirt/64/config-default
index 4e63668f5f..0045651333 100644
--- a/target/linux/armvirt/64/config-default
+++ b/target/linux/armvirt/64/config-default
@@ -106,6 +106,7 @@ CONFIG_GENERIC_CSUM=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GPIO_GENERIC=y
CONFIG_GPIO_GENERIC_PLATFORM=y
+CONFIG_HARDEN_BRANCH_PREDICTOR=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_KASAN=y
@@ -177,6 +178,7 @@ CONFIG_SYS_SUPPORTS_HUGETLBFS=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_RGX is not set
# CONFIG_THUNDER_NIC_VF is not set
+CONFIG_UNMAP_KERNEL_AT_EL0=y
CONFIG_VEXPRESS_CONFIG=y
CONFIG_VEXPRESS_SYSCFG=y
CONFIG_VIDEOMODE_HELPERS=y