Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex fix aarch64 build
details: https://anonhg.NetBSD.org/src/rev/62c8d2add92d
branches: trunk
changeset: 1025912:62c8d2add92d
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Nov 13 18:30:27 2021 +0000
description:
fix aarch64 build
diffstat:
sys/arch/arm/cortex/gtmr.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r e86e0b5a297f -r 62c8d2add92d sys/arch/arm/cortex/gtmr.c
--- a/sys/arch/arm/cortex/gtmr.c Sat Nov 13 15:34:39 2021 +0000
+++ b/sys/arch/arm/cortex/gtmr.c Sat Nov 13 18:30:27 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gtmr.c,v 1.47 2021/11/12 21:59:04 jmcneill Exp $ */
+/* $NetBSD: gtmr.c,v 1.48 2021/11/13 18:30:27 jakllsch Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.47 2021/11/12 21:59:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.48 2021/11/13 18:30:27 jakllsch Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -257,9 +257,11 @@
/* XXX hmm... called from cpu_hatch which hasn't lowered ipl yet */
int s = splsched();
+#if defined(__arm__)
if ((sc->sc_flags & GTMR_FLAG_CPU_REGISTERS_NOT_FW_CONFIGURED) != 0) {
armreg_cnt_frq_write(sc->sc_freq);
}
+#endif
/*
* Allow the virtual and physical counters to be accessed from
Home |
Main Index |
Thread Index |
Old Index