summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-09-30 16:34:50 +0000
committeravg <avg@FreeBSD.org>2009-09-30 16:34:50 +0000
commitb6e8843767a58415038acc8a36342bb6977e8daa (patch)
treefd90d801fef27f46a7ab905d509ae4911d0fac4d /sys/amd64
parentda9ae504397cf8ef970c4e4633e391a1f153054b (diff)
downloadFreeBSD-src-b6e8843767a58415038acc8a36342bb6977e8daa.zip
FreeBSD-src-b6e8843767a58415038acc8a36342bb6977e8daa.tar.gz
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
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/include/cpufunc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index eb264ae..dee78cb 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -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));
OpenPOWER on IntegriCloud