perf(proot): enable syscall patching by default

This commit is contained in:
Kurt Himebauch committed 2026-10-27 14:29:58 -04:00
1 parent 4b230cbd0f
commit 785d1bf1da
2 files changed
+15 -9

No files matched your search

+1 -1
View File
@@ -207,7 +207,7 @@ static void svc_stats(void) {
__attribute__((constructor)) static void svc_patch_init(void) {
const char *enabled = getenv("PROOT_FP_PATCH_SVC");
if (!enabled || strcmp(enabled, "1") || !fp_ready()) return;
if ((enabled && strcmp(enabled, "1")) || !fp_ready()) return;
if (getauxval(AT_HWCAP) & HWCAP_SVE) return;
#ifdef HWCAP2_SME
if (getauxval(AT_HWCAP2) & HWCAP2_SME) return;