Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 PMCR_EL0.LC should be set. ARM depr...
details: https://anonhg.NetBSD.org/src/rev/6c07f361ada4
branches: trunk
changeset: 372722:6c07f361ada4
user: ryo <ryo%NetBSD.org@localhost>
date: Thu Dec 22 06:58:47 2022 +0000
description:
PMCR_EL0.LC should be set. ARM deprecates use of PMCR_EL0.LC=0
diffstat:
sys/arch/aarch64/aarch64/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 76c89a832a0b -r 6c07f361ada4 sys/arch/aarch64/aarch64/cpu.c
--- a/sys/arch/aarch64/aarch64/cpu.c Thu Dec 22 06:58:07 2022 +0000
+++ b/sys/arch/aarch64/aarch64/cpu.c Thu Dec 22 06:58:47 2022 +0000
@@ -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 <ryo%nerv.org@localhost>
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index