svn commit: r321925 - head/sys/arm/arm

Andrew Turner andrew at FreeBSD.org
Wed Aug 2 14:12:49 UTC 2017


Author: andrew
Date: Wed Aug  2 14:12:47 2017
New Revision: 321925
URL: https://svnweb.freebsd.org/changeset/base/321925

Log:
  Fix the return type for get_cntxc(). The register is 64-bit on both arm
  and arm64 so move any truncation to the caller.
  
  Submitted by:	Mihai Carabas <mihai.carabas at gmail.com>
  X-Differential Revision:	https://reviews.freebsd.org/D10213

Modified:
  head/sys/arm/arm/generic_timer.c

Modified: head/sys/arm/arm/generic_timer.c
==============================================================================
--- head/sys/arm/arm/generic_timer.c	Wed Aug  2 13:08:10 2017	(r321924)
+++ head/sys/arm/arm/generic_timer.c	Wed Aug  2 14:12:47 2017	(r321925)
@@ -138,7 +138,7 @@ get_freq(void)
 	return (get_el0(cntfrq));
 }
 
-static long
+static uint64_t
 get_cntxct(bool physical)
 {
 	uint64_t val;


More information about the svn-src-head mailing list