projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12dfc73
)
microblaze: Fix asm compilation warning
author
Michal Simek
<monstr@monstr.eu>
Mon, 7 Feb 2011 10:29:43 +0000
(11:29 +0100)
committer
Michal Simek
<monstr@monstr.eu>
Mon, 7 Feb 2011 18:12:17 +0000
(19:12 +0100)
Microblaze ASM doesn't support hex values for mfs instructions.
/tmp/ccwiXVmt.s: Assembler messages:
/tmp/ccwiXVmt.s:19: Warning: ignoring operands: x00
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/cpu/pvr.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/kernel/cpu/pvr.c
b/arch/microblaze/kernel/cpu/pvr.c
index e01afa68273ede2302d7cd6da97f0c63430f7eaa..488c1ed24e381ff379c018dd81e8092a904145e7 100644
(file)
--- a/
arch/microblaze/kernel/cpu/pvr.c
+++ b/
arch/microblaze/kernel/cpu/pvr.c
@@
-27,7
+27,7
@@
register unsigned tmp __asm__("r3"); \
tmp = 0x0; /* Prevent warning about unused */ \
__asm__ __volatile__ ( \
- "mfs %0, rpvr" #pvrid ";" \
+ "mfs %0, rpvr" #pvrid ";"
\
: "=r" (tmp) : : "memory"); \
val = tmp; \
}
@@
-54,7
+54,7
@@
int cpu_has_pvr(void)
if (!(flags & PVR_MSR_BIT))
return 0;
- get_single_pvr(0
x00
, pvr0);
+ get_single_pvr(0, pvr0);
pr_debug("%s: pvr0 is 0x%08x\n", __func__, pvr0);
if (pvr0 & PVR0_PVR_FULL_MASK)