Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2018 06:27:30 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r328966 - stable/11/sys/arm/include
Message-ID:  <201802070627.w176RU9c083828@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmel
Date: Wed Feb  7 06:27:29 2018
New Revision: 328966
URL: https://svnweb.freebsd.org/changeset/base/328966

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

Modified:
  stable/11/sys/arm/include/cpu-v4.h
  stable/11/sys/arm/include/cpu-v6.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/arm/include/cpu-v4.h
==============================================================================
--- stable/11/sys/arm/include/cpu-v4.h	Wed Feb  7 06:24:34 2018	(r328965)
+++ stable/11/sys/arm/include/cpu-v4.h	Wed Feb  7 06:27:29 2018	(r328966)
@@ -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: stable/11/sys/arm/include/cpu-v6.h
==============================================================================
--- stable/11/sys/arm/include/cpu-v6.h	Wed Feb  7 06:24:34 2018	(r328965)
+++ stable/11/sys/arm/include/cpu-v6.h	Wed Feb  7 06:27:29 2018	(r328966)
@@ -65,10 +65,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);							\
 }
@@ -91,7 +91,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?201802070627.w176RU9c083828>