arm64: set DZE bit to make EL0 can use DC ZVA

Signed-off-by: Min Le <lemin.lm@antgroup.com>
This commit is contained in:
Min Le 2020-10-10 16:38:34 +08:00
parent db36d948fa
commit 2ae97b27aa
1 changed files with 2 additions and 1 deletions

View File

@ -46,10 +46,11 @@
#define SCTLR_M 1 << 0
#define SCTLR_C 1 << 2
#define SCTLR_I 1 << 12
#define SCTLR_DZE 1 << 14
#define SCTLR_UCT 1 << 15
#define SCTLR_UCI 1 << 26
#define SCTLR_EL1_DEFAULT (SCTLR_M | SCTLR_C | SCTLR_I | SCTLR_UCT | SCTLR_UCI)
#define SCTLR_EL1_DEFAULT (SCTLR_M | SCTLR_C | SCTLR_I | SCTLR_UCT | SCTLR_UCI | SCTLR_DZE)
// cntkctl_el1: counter-timer kernel control register el1.
#define CNTKCTL_EL0PCTEN 1 << 0