cpufunc.h: unify/correct style of c extension names

i386 and amd64 archs only.
inline => __inline. [1]
__asm__ => __asm. [2]

Reviewed by:	kib, jhb [1]
Suggested by:	kib [2]
MFC after:	1 week
This commit is contained in:
avg 2009-09-30 16:34:50 +00:00
parent da9ae50439
commit b6e8843767
2 changed files with 5 additions and 5 deletions

View File

@ -277,7 +277,7 @@ static __inline void
mfence(void)
{
__asm__ __volatile("mfence" : : : "memory");
__asm __volatile("mfence" : : : "memory");
}
static __inline void
@ -457,14 +457,14 @@ load_es(u_int sel)
__asm __volatile("mov %0,%%es" : : "rm" (sel));
}
static inline void
static __inline void
cpu_monitor(const void *addr, int extensions, int hints)
{
__asm __volatile("monitor;"
: :"a" (addr), "c" (extensions), "d"(hints));
}
static inline void
static __inline void
cpu_mwait(int extensions, int hints)
{
__asm __volatile("mwait;" : :"a" (hints), "c" (extensions));

View File

@ -132,14 +132,14 @@ enable_intr(void)
#endif
}
static inline void
static __inline void
cpu_monitor(const void *addr, int extensions, int hints)
{
__asm __volatile("monitor;"
: :"a" (addr), "c" (extensions), "d"(hints));
}
static inline void
static __inline void
cpu_mwait(int extensions, int hints)
{
__asm __volatile("mwait;" : :"a" (hints), "c" (extensions));