diff options
author | wollman <wollman@FreeBSD.org> | 1996-03-28 20:39:45 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-03-28 20:39:45 +0000 |
commit | 0c6a9cd2753d7440a04c9fd67e090f4705596b4d (patch) | |
tree | c841707ead20f4942b8a7ce75d8b9455e0e2315f | |
parent | 0e478acfb79db58ca8a5ce56e8c2655bbab40399 (diff) | |
download | FreeBSD-src-0c6a9cd2753d7440a04c9fd67e090f4705596b4d.zip FreeBSD-src-0c6a9cd2753d7440a04c9fd67e090f4705596b4d.tar.gz |
>Blush<. Use the correct opcode for the WRMSR instruction.
-rw-r--r-- | sys/amd64/include/cpufunc.h | 4 | ||||
-rw-r--r-- | sys/i386/include/cpufunc.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index 6a1235a..756bb65 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cpufunc.h,v 1.45 1996/01/16 07:42:08 bde Exp $ + * $Id: cpufunc.h,v 1.46 1996/03/26 19:57:56 wollman Exp $ */ /* @@ -323,7 +323,7 @@ rdpmc(unsigned pmc) static __inline void wrmsr(unsigned msr, long long newval) { - __asm __volatile(".byte 0x0f, 0x33" : : "A" (newval), "c" (msr)); + __asm __volatile(".byte 0x0f, 0x30" : : "A" (newval), "c" (msr)); } #else /* !__GNUC__ */ diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h index 6a1235a..756bb65 100644 --- a/sys/i386/include/cpufunc.h +++ b/sys/i386/include/cpufunc.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cpufunc.h,v 1.45 1996/01/16 07:42:08 bde Exp $ + * $Id: cpufunc.h,v 1.46 1996/03/26 19:57:56 wollman Exp $ */ /* @@ -323,7 +323,7 @@ rdpmc(unsigned pmc) static __inline void wrmsr(unsigned msr, long long newval) { - __asm __volatile(".byte 0x0f, 0x33" : : "A" (newval), "c" (msr)); + __asm __volatile(".byte 0x0f, 0x30" : : "A" (newval), "c" (msr)); } #else /* !__GNUC__ */ |