arm sve: enable on baremetal by setting missing bits CPACR_EL1.ZEN

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-25 00:00:00 +00:00
parent 1f75ce8f12
commit 87e846fc1f
4 changed files with 43 additions and 9 deletions

View File

@@ -7,7 +7,10 @@ lkmc_start:
msr vbar_el1, x0
/* https://cirosantilli.com/linux-kernel-module-cheat#aarch64-baremetal-neon-setup */
/* CPACR_EL1.FPEN */
mov x1, 0x3 << 20
/* CPACR_EL1.ZEN */
orr x1, x1, 0x3 << 16
msr cpacr_el1, x1
isb