Browse Source

microblaze: Remove hardcoded asm instraction for PVR loading

It comes from past where pvr wasn't supported in msr instruction.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Michal Simek 14 years ago
parent
commit
a7d8355008
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/microblaze/kernel/cpu/pvr.c

+ 1 - 1
arch/microblaze/kernel/cpu/pvr.c

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