Commit 7668fd57 authored by Russell King's avatar Russell King

ARM: make get_cr()/set_cr() use unsigned long values

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4b660a7f
...@@ -52,14 +52,14 @@ ...@@ -52,14 +52,14 @@
extern unsigned long cr_no_alignment; /* defined in entry-armv.S */ extern unsigned long cr_no_alignment; /* defined in entry-armv.S */
extern unsigned long cr_alignment; /* defined in entry-armv.S */ extern unsigned long cr_alignment; /* defined in entry-armv.S */
static inline unsigned int get_cr(void) static inline unsigned long get_cr(void)
{ {
unsigned int val; unsigned long val;
asm("mrc p15, 0, %0, c1, c0, 0 @ get CR" : "=r" (val) : : "cc"); asm("mrc p15, 0, %0, c1, c0, 0 @ get CR" : "=r" (val) : : "cc");
return val; return val;
} }
static inline void set_cr(unsigned int val) static inline void set_cr(unsigned long val)
{ {
asm volatile("mcr p15, 0, %0, c1, c0, 0 @ set CR" asm volatile("mcr p15, 0, %0, c1, c0, 0 @ set CR"
: : "r" (val) : "cc"); : : "r" (val) : "cc");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment