1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00
freebsd/sys/conf
Stanislav Sedov e085f869d5 - Add cpuctl(4) pseudo-device driver to provide access to some low-level
features of CPUs like reading/writing machine-specific registers,
  retrieving cpuid data, and updating microcode.
- Add cpucontrol(8) utility, that provides userland access to
  the features of cpuctl(4).
- Add subsequent manpages.

The cpuctl(4) device operates as follows. The pseudo-device node cpuctlX
is created for each cpu present in the systems. The pseudo-device minor
number corresponds to the cpu number in the system. The cpuctl(4) pseudo-
device allows a number of ioctl to be preformed, namely RDMSR/WRMSR/CPUID
and UPDATE. The first pair alows the caller to read/write machine-specific
registers from the correspondent CPU. cpuid data could be retrieved using
the CPUID call, and microcode updates are applied via UPDATE.

The permissions are inforced based on the pseudo-device file permissions.
RDMSR/CPUID will be allowed when the caller has read access to the device
node, while WRMSR/UPDATE will be granted only when the node is opened
for writing. There're also a number of priv(9) checks.

The cpucontrol(8) utility is intened to provide userland access to
the cpuctl(4) device features. The utility also allows one to apply
cpu microcode updates.

Currently only Intel and AMD cpus are supported and were tested.

Approved by:	kib
Reviewed by:	rpaulo, cokane, Peter Jeremy
MFC after:	1 month
2008-08-08 16:26:53 +00:00
..
defines
files Fix LINT 2008-07-31 03:51:53 +00:00
files.amd64 - Add cpuctl(4) pseudo-device driver to provide access to some low-level 2008-08-08 16:26:53 +00:00
files.arm Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
files.i386 - Add cpuctl(4) pseudo-device driver to provide access to some low-level 2008-08-08 16:26:53 +00:00
files.ia64 Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
files.mips Merge in the mips specific configuration files and such from the 2008-04-13 06:25:43 +00:00
files.pc98 Remove the sbni(4) driver. No one responded to calls to test it on 2008-07-04 21:06:57 +00:00
files.powerpc Add support for the Apple Big Mac (BMAC) Ethernet controller, 2008-06-07 22:58:32 +00:00
files.sparc64 Remove the MD isa_irq_pending() and the underlying PCI-specific 2008-04-26 11:01:38 +00:00
files.sun4v Don't built the unused counter-timer abstraction. 2008-05-02 17:41:52 +00:00
kern.mk Disable SSP for mips until support is added to the base architecture. 2008-07-23 06:16:34 +00:00
kern.post.mk Add CTF conversion to the objects compiled from generated code. 2008-07-05 06:12:14 +00:00
kern.pre.mk Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00
kmod_syms.awk
kmod.mk Force an explicit dependency on opt_global.h for all module object files 2008-03-04 16:54:31 +00:00
ldscript.amd64
ldscript.arm Create a non-elf pure binary version of the kernel as well. 2005-11-24 02:25:49 +00:00
ldscript.i386
ldscript.ia64 Have the linker provide btext. It's used for profiling. 2004-08-25 07:43:28 +00:00
ldscript.mips Make ld use tradmips for output formats since we migrated to it. 2008-04-30 12:44:58 +00:00
ldscript.mips.cfe Make ld use tradmips for output formats since we migrated to it. 2008-04-30 12:44:58 +00:00
ldscript.powerpc Avoid hardcoding the kernel link address in the linker script. 2008-02-27 00:03:23 +00:00
ldscript.sparc64
Makefile.amd64 Add a kernel option for amd64 to compile with the frame on the stack 2008-05-23 03:52:55 +00:00
Makefile.arm We need -I$S to compile the elf trampoline. 2008-08-04 14:38:38 +00:00
Makefile.i386 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.ia64 Remove definition of the GCC3 variable. It was introduced in rev. 2007-06-02 21:30:39 +00:00
Makefile.mips Merge in the mips specific configuration files and such from the 2008-04-13 06:25:43 +00:00
Makefile.pc98 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.powerpc Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sparc64 Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
Makefile.sun4v Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00
makeLINT.mk
makeLINT.sed
newvers.sh Change the character prefixed to the svn version to "r" since that seems 2008-07-13 20:08:38 +00:00
NOTES Disconnect drivers that haven't been ported to MPSAFE TTY yet. 2008-08-03 10:32:17 +00:00
options Add an accept filter for TCP based DNS requests. It waits until the 2008-07-18 14:44:51 +00:00
options.amd64 Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and 2008-05-26 10:40:09 +00:00
options.arm Support for the XScale PXA255 SoC as found on the Gumstix Basix and Connex 2008-06-06 05:08:09 +00:00
options.i386 Remove obselete PECOFF image activator support. 2008-06-14 12:51:44 +00:00
options.ia64 Add option EXCEPTION_TRACING, which enables KTR-like functionality 2007-07-30 22:42:33 +00:00
options.mips Merge in the mips specific configuration files and such from the 2008-04-13 06:25:43 +00:00
options.pc98 Remove obselete PECOFF image activator support. 2008-06-14 12:51:44 +00:00
options.powerpc Initial support for Freescale PowerQUICC III MPC85xx system-on-chip family. 2008-03-03 17:17:00 +00:00
options.sparc64 - In sunkbd_probe_keyboard() don't bother to determine the keyboard layout 2006-11-02 00:01:15 +00:00
options.sun4v Remove remnants from the sparc64 origin of this file and which are 2007-01-19 12:22:50 +00:00
systags.sh Use a simpler way to reach the <machine> include dir, which should 2005-12-03 21:37:54 +00:00