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
9963a47393
commit
1f066c248f
@ -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