All CP15 registers are bit fields or counters, don't use signed type
when accessing them. MFC after: 3 weeks
This commit is contained in:
parent
c6d98d62e2
commit
8a1d2cd3c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325438
@ -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)); \
|
||||
}
|
||||
|
@ -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)); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user