summaryrefslogtreecommitdiff
path: root/util/msrtool/msrutils.c
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2009-03-08 04:37:39 +0000
committerMarc Jones <marc.jones@amd.com>2009-03-08 04:37:39 +0000
commit8f210766d5cf673955ba62652570af78a0586f80 (patch)
tree0cd7865ef5ad4474bfdb84da9d220c802a781d2a /util/msrtool/msrutils.c
parent3b1a955ccef1c980ccea5af06349c0ea74a28d5a (diff)
Add some basic K8 MSRs.
Fix bash script type. Removed const return type on msraddrbyname() to fix gcc warning/error. Signed-off-by: Marc Jones <marcj303@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3985 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/msrtool/msrutils.c')
-rw-r--r--util/msrtool/msrutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/msrtool/msrutils.c b/util/msrtool/msrutils.c
index 4a4782b687..32af32adf3 100644
--- a/util/msrtool/msrutils.c
+++ b/util/msrtool/msrutils.c
@@ -137,7 +137,7 @@ const struct msrdef *findmsrdef(const uint32_t addr) {
return NULL;
}
-const uint32_t msraddrbyname(const char *name) {
+uint32_t msraddrbyname(const char *name) {
uint8_t t;
const uint32_t addr = strtoul(name, NULL, 16);
const struct msrdef *m;