Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2017 16:52:54 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325438 - head/sys/arm/include
Message-ID:  <201711051652.vA5GqswC066323@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmel
Date: Sun Nov  5 16:52:54 2017
New Revision: 325438
URL: https://svnweb.freebsd.org/changeset/base/325438

Log:
  All CP15 registers are bit fields or counters, don't use signed type
  when accessing them.
  
  MFC after:	3 weeks

Modified:
  head/sys/arm/include/cpu-v4.h
  head/sys/arm/include/cpu-v6.h

Modified: head/sys/arm/include/cpu-v4.h
==============================================================================
--- head/sys/arm/include/cpu-v4.h	Sun Nov  5 16:28:05 2017	(r325437)
+++ head/sys/arm/include/cpu-v4.h	Sun Nov  5 16:52:54 2017	(r325438)
@@ -51,10 +51,10 @@
 #define _FX(s...) #s
 
 #define _RF0(fname, aname...)						\
-static __inline register_t						\
+static __inline uint32_t						\
 fname(void)								\
 {									\
-	register_t reg;							\
+	uint32_t reg;							\
 	__asm __volatile("mrc\t" _FX(aname): "=r" (reg));		\
 	return(reg);							\
 }
@@ -77,7 +77,7 @@ fname(void)								\
 
 #define _WF1(fname, aname...)						\
 static __inline void							\
-fname(register_t reg)							\
+fname(uint32_t reg)							\
 {									\
 	__asm __volatile("mcr\t" _FX(aname):: "r" (reg));		\
 }

Modified: head/sys/arm/include/cpu-v6.h
==============================================================================
--- head/sys/arm/include/cpu-v6.h	Sun Nov  5 16:28:05 2017	(r325437)
+++ head/sys/arm/include/cpu-v6.h	Sun Nov  5 16:52:54 2017	(r325438)
@@ -103,10 +103,10 @@ extern int pmu_attched;
 #define _FX(s...) #s
 
 #define _RF0(fname, aname...)						\
-static __inline register_t						\
+static __inline uint32_t						\
 fname(void)								\
 {									\
-	register_t reg;							\
+	uint32_t reg;							\
 	__asm __volatile("mrc\t" _FX(aname): "=r" (reg));		\
 	return(reg);							\
 }
@@ -129,7 +129,7 @@ fname(void)								\
 
 #define _WF1(fname, aname...)						\
 static __inline void							\
-fname(register_t reg)							\
+fname(uint32_t reg)							\
 {									\
 	__asm __volatile("mcr\t" _FX(aname):: "r" (reg));		\
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711051652.vA5GqswC066323>