From owner-cvs-src-old@FreeBSD.ORG Tue Jun 30 12:37:42 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36C041065670 for ; Tue, 30 Jun 2009 12:37:42 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2243B8FC1C for ; Tue, 30 Jun 2009 12:37:42 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5UCbg7W001840 for ; Tue, 30 Jun 2009 12:37:42 GMT (envelope-from stas@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5UCbgms001839 for cvs-src-old@freebsd.org; Tue, 30 Jun 2009 12:37:42 GMT (envelope-from stas@repoman.freebsd.org) Message-Id: <200906301237.n5UCbgms001839@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to stas@repoman.freebsd.org using -f From: Stanislav Sedov Date: Tue, 30 Jun 2009 12:35:47 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/man/man4 cpuctl.4 src/sys/dev/cpuctl cpuctl.c src/sys/sys cpuctl.h src/usr.sbin/cpucontrol cpucontrol.8 cpucontrol.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2009 12:37:42 -0000 stas 2009-06-30 12:35:47 UTC FreeBSD src repository Modified files: share/man/man4 cpuctl.4 sys/dev/cpuctl cpuctl.c sys/sys cpuctl.h usr.sbin/cpucontrol cpucontrol.8 cpucontrol.c Log: SVN rev 195189 on 2009-06-30 12:35:47Z by stas - Add support to atomically set/clear individual bits of a MSR register via cpuctl(4) driver. Two new CPUCTL_MSRSBIT and CPUCTL_MSRCBIT ioctl(2) calls treat the data field of the argument struct passed as a mask and set/clear bits of the MSR register according to the mask value. - Allow user to perform atomic bitwise AND and OR operaions on MSR registers via cpucontrol(8) utility. Two new operations ("&=" and "|=") have been added. The first one applies bitwise AND operaion between the current contents of the MSR register and the mask, and the second performs bitwise OR. The argument can be optionally prefixed with "~" inversion operator. This allows one to mimic the "clear bit" behavior by using the command like this: cpucontrol -m 0x10&=~0x02 # clear the second bit of TSC MSR Inversion operator support in all modes (assignment, OR, AND). Approved by: re (kib) MFC after: 1 month Revision Changes Path 1.7 +6 -1 src/share/man/man4/cpuctl.4 1.5 +18 -2 src/sys/dev/cpuctl/cpuctl.c 1.2 +2 -0 src/sys/sys/cpuctl.h 1.6 +55 -5 src/usr.sbin/cpucontrol/cpucontrol.8 1.3 +81 -20 src/usr.sbin/cpucontrol/cpucontrol.c