summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-01-25 12:43:27 +0000
committerkib <kib@FreeBSD.org>2012-01-25 12:43:27 +0000
commitdbd94fb4b8925880c1e2cefc7dfd8d653c627fa3 (patch)
tree5ac0dbe00e0419187d12d9ac1f6faf5e9f670c47
parentf5404eec6cb788fc10fd7ddaf4c2b7a16cc23ecd (diff)
downloadFreeBSD-src-dbd94fb4b8925880c1e2cefc7dfd8d653c627fa3.zip
FreeBSD-src-dbd94fb4b8925880c1e2cefc7dfd8d653c627fa3.tar.gz
Order newly added functions alphabetically.
Requested by: bde MFC after: 3 days
-rw-r--r--sys/amd64/include/cpufunc.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index 9b147c7..d112e66 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -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 */
OpenPOWER on IntegriCloud