svn commit: r230538 - head/sys/amd64/include
Konstantin Belousov
kib at FreeBSD.org
Wed Jan 25 12:43:28 UTC 2012
Author: kib
Date: Wed Jan 25 12:43:27 2012
New Revision: 230538
URL: http://svn.freebsd.org/changeset/base/230538
Log:
Order newly added functions alphabetically.
Requested by: bde
MFC after: 3 days
Modified:
head/sys/amd64/include/cpufunc.h
Modified: head/sys/amd64/include/cpufunc.h
==============================================================================
--- head/sys/amd64/include/cpufunc.h Wed Jan 25 11:45:50 2012 (r230537)
+++ head/sys/amd64/include/cpufunc.h Wed Jan 25 12:43:27 2012 (r230538)
@@ -670,17 +670,6 @@ intr_restore(register_t rflags)
}
static __inline void
-xsetbv(uint32_t reg, uint64_t val)
-{
- uint32_t low, hi;
-
- low = val;
- hi = val >> 32;
- __asm __volatile(".byte 0x0f,0x01,0xd1" : :
- "c" (reg), "a" (low), "d" (hi));
-}
-
-static __inline void
xsave(char *addr, uint64_t mask)
{
uint32_t low, hi;
@@ -693,6 +682,17 @@ xsave(char *addr, uint64_t mask)
}
static __inline void
+xsetbv(uint32_t reg, uint64_t val)
+{
+ uint32_t low, hi;
+
+ low = val;
+ hi = val >> 32;
+ __asm __volatile(".byte 0x0f,0x01,0xd1" : :
+ "c" (reg), "a" (low), "d" (hi));
+}
+
+static __inline void
xrstor(char *addr, uint64_t mask)
{
uint32_t low, hi;
@@ -768,8 +768,8 @@ u_int rgs(void);
void wbinvd(void);
void write_rflags(u_int rf);
void wrmsr(u_int msr, uint64_t newval);
-void xsetbv(uint32_t reg, uint64_t val);
void xsave(char *addr, uint64_t mask);
+void xsetbv(uint32_t reg, uint64_t val);
void xrstor(char *addr, uint64_t mask);
#endif /* __GNUCLIKE_ASM && __CC_SUPPORTS___INLINE */
More information about the svn-src-head
mailing list