microblaze: Remove hardcoded asm instraction for PVR loading
authorMichal Simek <monstr@monstr.eu>
Tue, 28 Sep 2010 05:43:59 +0000 (15:43 +1000)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:46 +0000 (15:51 +1000)
It comes from past where pvr wasn't supported in msr instruction.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/cpu/pvr.c

index 9bee938..e01afa6 100644 (file)
@@ -27,7 +27,7 @@
        register unsigned tmp __asm__("r3");                    \
        tmp = 0x0;      /* Prevent warning about unused */      \
        __asm__ __volatile__ (                                  \
-                       ".byte 0x94,0x60,0xa0, " #pvrid "\n\t"  \
+                       "mfs    %0, rpvr" #pvrid ";"    \
                        : "=r" (tmp) : : "memory");             \
        val = tmp;                                              \
 }