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:
parent
da9ae50439
commit
b6e8843767
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user