2 * This file is part of msrtool.
4 * Copyright (c) 2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <sys/types.h>
25 /* This Darwin support requires DirectHW, which is available at
26 * https://www.coreboot.org/DirectHW
29 int darwin_probe(const struct sysdef
*system
)
38 int darwin_open(uint8_t cpu
, enum SysModes mode
)
42 fprintf(stderr
, "%s: only core 0 is supported on Mac OS X right now.\n", __func__
);
51 int darwin_close(uint8_t cpu
)
56 int darwin_rdmsr(uint8_t cpu
, uint32_t addr
, struct msr
*val
)