mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
arm sve: enable on baremetal by setting missing bits CPACR_EL1.ZEN
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user