From owner-cvs-sys Thu Mar 28 12:39:53 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA02084 for cvs-sys-outgoing; Thu, 28 Mar 1996 12:39:53 -0800 (PST) Received: (from wollman@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA02068 Thu, 28 Mar 1996 12:39:47 -0800 (PST) Date: Thu, 28 Mar 1996 12:39:47 -0800 (PST) From: Garrett Wollman Message-Id: <199603282039.MAA02068@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/i386 perfmon.c src/sys/i386/include cpufunc.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 96/03/28 12:39:47 Modified: sys/i386/i386 perfmon.c Log: Nit: according to the Harvard code, it is necessary to clear the timestamp counter before loading the performance-monitor control register. I'm not sure I believe this, but we'll follow their lead for the moment. As a result of this commit, the performance-monitoring test program that I wrote now works (the program will find its way to share/examples). Revision Changes Path 1.3 +19 -8 src/sys/i386/i386/perfmon.c Modified: sys/i386/include cpufunc.h Log: >Blush<. Use the correct opcode for the WRMSR instruction. Revision Changes Path 1.47 +2 -2 src/sys/i386/include/cpufunc.h