Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 12:43:27 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230538 - head/sys/amd64/include
Message-ID:  <201201251243.q0PChR9p025305@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201251243.q0PChR9p025305>