patch-1.3.94 linux/arch/sparc/kernel/tadpole.c

Next file: linux/arch/sparc/mm/mbus.c
Previous file: linux/arch/sparc/kernel/probe.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.93/linux/arch/sparc/kernel/tadpole.c linux/arch/sparc/kernel/tadpole.c
@@ -41,18 +41,16 @@
 
 static void clk_slow(void)
 {
-	__asm__ __volatile__("save %sp, -0x68, %sp\n\t"
-			     "set _clk_ctrl, %l0\n\t"
-			     "ld [%l0], %l0\n\t"
-			     "mov 0xcc, %l1\n\t"
-			     "mov 0x4c, %l2\n\t"
-			     "mov 0xcf, %l3\n\t"
-			     "mov 0xdf, %l4\n\t"
-			     "stb %l1, [%l0+3]\n\t"
-			     "stb %l2, [%l0+3]\n\t"
-			     "stb %l3, [%l0+3]\n\t"
-			     "stb %l4, [%l0+3]\n\t"
-			     "restore\n\t");
+	__asm__ __volatile__("mov 0xcc, %%g2\n\t"
+			     "mov 0x4c, %%g3\n\t"
+			     "mov 0xcf, %%g4\n\t"
+			     "mov 0xdf, %%g5\n\t"
+			     "stb %%g2, [%0+3]\n\t"
+			     "stb %%g3, [%0+3]\n\t"
+			     "stb %%g4, [%0+3]\n\t"
+			     "stb %%g5, [%0+3]\n\t" : :
+			     "r" (clk_ctrl) :
+			     "g2", "g3", "g4", "g5");
 }
 
 static void tsu_clockstop(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this