Module Name:    src
Committed By:   jakllsch
Date:           Sat Nov 13 18:30:28 UTC 2021

Modified Files:
        src/sys/arch/arm/cortex: gtmr.c

Log Message:
fix aarch64 build


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/arm/cortex/gtmr.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/arm/cortex/gtmr.c
diff -u src/sys/arch/arm/cortex/gtmr.c:1.47 src/sys/arch/arm/cortex/gtmr.c:1.48
--- src/sys/arch/arm/cortex/gtmr.c:1.47	Fri Nov 12 21:59:04 2021
+++ src/sys/arch/arm/cortex/gtmr.c	Sat Nov 13 18:30:27 2021
@@ -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 @@ gtmr_init_cpu_clock(struct cpu_info *ci)
 	/* 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

Reply via email to