Module Name: src
Committed By: ryo
Date: Thu Dec 22 06:58:47 UTC 2022
Modified Files:
src/sys/arch/aarch64/aarch64: cpu.c
Log Message:
PMCR_EL0.LC should be set. ARM deprecates use of PMCR_EL0.LC=0
To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/aarch64/aarch64/cpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/aarch64/aarch64/cpu.c
diff -u src/sys/arch/aarch64/aarch64/cpu.c:1.71 src/sys/arch/aarch64/aarch64/cpu.c:1.72
--- src/sys/arch/aarch64/aarch64/cpu.c:1.71 Thu Dec 22 06:58:07 2022
+++ src/sys/arch/aarch64/aarch64/cpu.c Thu Dec 22 06:58:47 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.71 2022/12/22 06:58:07 ryo Exp $ */
+/* $NetBSD: cpu.c,v 1.72 2022/12/22 06:58:47 ryo Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.71 2022/12/22 06:58:07 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.72 2022/12/22 06:58:47 ryo Exp $");
#include "locators.h"
#include "opt_arm_debug.h"
@@ -498,7 +498,7 @@ cpu_init_counter(struct cpu_info *ci)
return;
}
- reg_pmcr_el0_write(PMCR_E | PMCR_C);
+ reg_pmcr_el0_write(PMCR_E | PMCR_C | PMCR_LC);
reg_pmintenclr_el1_write(PMINTEN_C | PMINTEN_P);
reg_pmcntenset_el0_write(PMCNTEN_C);