|
|
@@ -1335,9 +1335,6 @@ static void verify_local_cpu_capabilities(void)
|
|
|
|
|
|
if (system_supports_sve())
|
|
|
verify_sve_features();
|
|
|
-
|
|
|
- if (system_uses_ttbr0_pan())
|
|
|
- pr_info("Emulating Privileged Access Never (PAN) using TTBR0_EL1 switching\n");
|
|
|
}
|
|
|
|
|
|
void check_local_cpu_capabilities(void)
|
|
|
@@ -1396,6 +1393,9 @@ void __init setup_cpu_features(void)
|
|
|
if (system_supports_32bit_el0())
|
|
|
setup_elf_hwcaps(compat_elf_hwcaps);
|
|
|
|
|
|
+ if (system_uses_ttbr0_pan())
|
|
|
+ pr_info("emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching\n");
|
|
|
+
|
|
|
sve_setup();
|
|
|
|
|
|
/* Advertise that we have computed the system capabilities */
|