msrtool: Add FreeBSD support using /dev/cpuctl ioctl interface
[coreboot.git] / util / msrtool / msrtool.c
index 251da40d99fccd8327e3f751ea45f3943c9ad41a..4ed86baf5800c8710f2da5c7be4128caa968b9a6 100644 (file)
@@ -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 }
 };