patch-2.4.23 linux-2.4.23/include/asm-sparc/pgtsun4c.h
Next file: linux-2.4.23/include/asm-sparc/processor.h
Previous file: linux-2.4.23/include/asm-sparc/pgtsun4.h
Back to the patch index
Back to the overall index
- Lines: 80
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/include/asm-sparc/pgtsun4c.h
- Orig date:
2000-06-19 17:59:39.000000000 -0700
diff -urN linux-2.4.22/include/asm-sparc/pgtsun4c.h linux-2.4.23/include/asm-sparc/pgtsun4c.h
@@ -75,7 +75,7 @@
#ifndef __ASSEMBLY__
-extern __inline__ unsigned long sun4c_get_synchronous_error(void)
+static inline unsigned long sun4c_get_synchronous_error(void)
{
unsigned long sync_err;
@@ -85,7 +85,7 @@
return sync_err;
}
-extern __inline__ unsigned long sun4c_get_synchronous_address(void)
+static inline unsigned long sun4c_get_synchronous_address(void)
{
unsigned long sync_addr;
@@ -96,7 +96,7 @@
}
/* SUN4C pte, segmap, and context manipulation */
-extern __inline__ unsigned long sun4c_get_segmap(unsigned long addr)
+static inline unsigned long sun4c_get_segmap(unsigned long addr)
{
register unsigned long entry;
@@ -107,15 +107,16 @@
return entry;
}
-extern __inline__ void sun4c_put_segmap(unsigned long addr, unsigned long entry)
+static inline void sun4c_put_segmap(unsigned long addr, unsigned long entry)
{
__asm__ __volatile__("\n\tstba %1, [%0] %2; nop; nop; nop;\n\t" : :
"r" (addr), "r" (entry),
- "i" (ASI_SEGMAP));
+ "i" (ASI_SEGMAP)
+ : "memory");
}
-extern __inline__ unsigned long sun4c_get_pte(unsigned long addr)
+static inline unsigned long sun4c_get_pte(unsigned long addr)
{
register unsigned long entry;
@@ -125,14 +126,15 @@
return entry;
}
-extern __inline__ void sun4c_put_pte(unsigned long addr, unsigned long entry)
+static inline void sun4c_put_pte(unsigned long addr, unsigned long entry)
{
__asm__ __volatile__("\n\tsta %1, [%0] %2; nop; nop; nop;\n\t" : :
"r" (addr),
- "r" ((entry & ~(_SUN4C_PAGE_PRESENT))), "i" (ASI_PTE));
+ "r" ((entry & ~(_SUN4C_PAGE_PRESENT))), "i" (ASI_PTE)
+ : "memory");
}
-extern __inline__ int sun4c_get_context(void)
+static inline int sun4c_get_context(void)
{
register int ctx;
@@ -143,10 +145,11 @@
return ctx;
}
-extern __inline__ int sun4c_set_context(int ctx)
+static inline int sun4c_set_context(int ctx)
{
__asm__ __volatile__("\n\tstba %0, [%1] %2; nop; nop; nop;\n\t" : :
- "r" (ctx), "r" (AC_CONTEXT), "i" (ASI_CONTROL));
+ "r" (ctx), "r" (AC_CONTEXT), "i" (ASI_CONTROL)
+ : "memory");
return ctx;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)