patch-2.4.23 linux-2.4.23/include/asm-sparc/vac-ops.h

Next file: linux-2.4.23/include/asm-sparc/viking.h
Previous file: linux-2.4.23/include/asm-sparc/turbosparc.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-sparc/vac-ops.h linux-2.4.23/include/asm-sparc/vac-ops.h
@@ -108,27 +108,29 @@
 extern struct sun4c_vac_props sun4c_vacinfo;
 
 /* sun4c_enable_vac() enables the sun4c virtual address cache. */
-extern __inline__ void sun4c_enable_vac(void)
+static inline void sun4c_enable_vac(void)
 {
-  __asm__ __volatile__("lduba [%0] %1, %%g1\n\t"
-		       "or    %%g1, %2, %%g1\n\t"
-		       "stba  %%g1, [%0] %1\n\t" : :
-		       "r" ((unsigned int) AC_SENABLE),
-		       "i" (ASI_CONTROL), "i" (SENABLE_CACHE) :
-		       "g1");
-  sun4c_vacinfo.on = 1;
+	__asm__ __volatile__("lduba [%0] %1, %%g1\n\t"
+			     "or    %%g1, %2, %%g1\n\t"
+			     "stba  %%g1, [%0] %1\n\t"
+			     : /* no outputs */
+			     : "r" ((unsigned int) AC_SENABLE),
+			     "i" (ASI_CONTROL), "i" (SENABLE_CACHE)
+			     : "g1", "memory");
+	sun4c_vacinfo.on = 1;
 }
 
 /* sun4c_disable_vac() disables the virtual address cache. */
-extern __inline__ void sun4c_disable_vac(void)
+static inline void sun4c_disable_vac(void)
 {
-  __asm__ __volatile__("lduba [%0] %1, %%g1\n\t"
-		       "andn  %%g1, %2, %%g1\n\t"
-		       "stba  %%g1, [%0] %1\n\t" : :
-		       "r" ((unsigned int) AC_SENABLE),
-		       "i" (ASI_CONTROL), "i" (SENABLE_CACHE) :
-		       "g1");
-  sun4c_vacinfo.on = 0;
+	__asm__ __volatile__("lduba [%0] %1, %%g1\n\t"
+			     "andn  %%g1, %2, %%g1\n\t"
+			     "stba  %%g1, [%0] %1\n\t"
+			     : /* no outputs */
+			     : "r" ((unsigned int) AC_SENABLE),
+			     "i" (ASI_CONTROL), "i" (SENABLE_CACHE)
+			     : "g1", "memory");
+	sun4c_vacinfo.on = 0;
 }
 
 #endif /* !(_SPARC_VAC_OPS_H) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)