summaryrefslogtreecommitdiff
path: root/util/msrtool/msrtool.c
diff options
context:
space:
mode:
authorAndriy Gapon <avg@icyb.net.ua>2009-11-28 05:21:42 +0000
committerPeter Stuge <peter@stuge.se>2009-11-28 05:21:42 +0000
commitd80e57c9c8d02181ec53bf2858ca790ee7ce93f8 (patch)
tree606bd395615c3ecf478fcf1f599381330d5d672f /util/msrtool/msrtool.c
parent7df17af13bc07888ffe47677db3ce9b93c8e4955 (diff)
downloadcoreboot-d80e57c9c8d02181ec53bf2858ca790ee7ce93f8.tar.xz
msrtool: Add FreeBSD support using /dev/cpuctl ioctl interface
Signed-off-by: Andriy Gapon <avg@icyb.net.ua> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4965 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/msrtool/msrtool.c')
-rw-r--r--util/msrtool/msrtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/msrtool/msrtool.c b/util/msrtool/msrtool.c
index 251da40d99..4ed86baf58 100644
--- a/util/msrtool/msrtool.c
+++ b/util/msrtool/msrtool.c
@@ -49,6 +49,7 @@ static struct targetdef alltargets[] = {
static struct sysdef allsystems[] = {
{ "linux", "Linux with /dev/cpu/*/msr", linux_probe, linux_open, linux_close, linux_rdmsr },
{ "darwin", "OS X with DirectIO", darwin_probe, darwin_open, darwin_close, darwin_rdmsr },
+ { "freebsd", "FreeBSD with /dev/cpuctl*", freebsd_probe, freebsd_open, freebsd_close, freebsd_rdmsr },
{ SYSTEM_EOT }
};