From owner-cvs-src-old@FreeBSD.ORG Sat Aug 15 16:22:01 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 BF4981065701 for ; Sat, 15 Aug 2009 16:22:01 +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 ABB8D8FC15 for ; Sat, 15 Aug 2009 16:22:01 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7FGM1b9086545 for ; Sat, 15 Aug 2009 16:22:01 GMT (envelope-from stas@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7FGM1sU086544 for cvs-src-old@freebsd.org; Sat, 15 Aug 2009 16:22:01 GMT (envelope-from stas@repoman.freebsd.org) Message-Id: <200908151622.n7FGM1sU086544@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to stas@repoman.freebsd.org using -f From: Stanislav Sedov Date: Sat, 15 Aug 2009 16:15:50 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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: Sat, 15 Aug 2009 16:22:01 -0000 stas 2009-08-15 16:15:50 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) share/man/man4 cpuctl.4 sys/dev/cpuctl cpuctl.c sys/sys cpuctl.h usr.sbin/cpucontrol cpucontrol.8 cpucontrol.c Log: SVN rev 196253 on 2009-08-15 16:15:50Z by stas - Merge r195189: - 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). Revision Changes Path 1.5.2.3 +6 -1 src/share/man/man4/cpuctl.4 1.3.2.3 +18 -2 src/sys/dev/cpuctl/cpuctl.c 1.1.2.2 +2 -0 src/sys/sys/cpuctl.h 1.4.2.3 +55 -5 src/usr.sbin/cpucontrol/cpucontrol.8 1.2.2.2 +81 -20 src/usr.sbin/cpucontrol/cpucontrol.c