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.cara...@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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to