diff options
author | Marc Jones <marcj303@gmail.com> | 2009-03-08 04:37:39 +0000 |
---|---|---|
committer | Marc Jones <marc.jones@amd.com> | 2009-03-08 04:37:39 +0000 |
commit | 8f210766d5cf673955ba62652570af78a0586f80 (patch) | |
tree | 0cd7865ef5ad4474bfdb84da9d220c802a781d2a /util/msrtool/msrutils.c | |
parent | 3b1a955ccef1c980ccea5af06349c0ea74a28d5a (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.c | 2 |
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; |