diff options
author | Peter Stuge <peter@stuge.se> | 2009-01-26 17:18:31 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2009-01-26 17:18:31 +0000 |
commit | 3108a12e9b701e6c3daeb0ae629ecb603dd6509c (patch) | |
tree | c5a1455804e58d611f6d0a0134193754809e4cd5 /util/msrtool/msrtool.h | |
parent | c1d6ed9a21bc96b0d4eb778b78c65b304e5e46f9 (diff) | |
download | coreboot-3108a12e9b701e6c3daeb0ae629ecb603dd6509c.tar.gz coreboot-3108a12e9b701e6c3daeb0ae629ecb603dd6509c.tar.bz2 coreboot-3108a12e9b701e6c3daeb0ae629ecb603dd6509c.zip |
msrtool: Allow MSR symbols (names) to also be used as addresses.
Thanks for the idea Mart!
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3921 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/msrtool/msrtool.h')
-rw-r--r-- | util/msrtool/msrtool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/msrtool/msrtool.h b/util/msrtool/msrtool.h index 7b639f06575a..23bc4b88d29e 100644 --- a/util/msrtool/msrtool.h +++ b/util/msrtool/msrtool.h @@ -157,6 +157,7 @@ struct msr msr_shl(const struct msr a, const uint8_t bits); struct msr msr_shr(const struct msr a, const uint8_t bits); void msr_and(struct msr *a, const struct msr b); const struct msrdef *findmsrdef(const uint32_t addr); +const uint32_t msraddrbyname(const char *name); void dumpmsrdefs(const struct targetdef *t); int dumpmsrdefsvals(FILE *f, const struct targetdef *t, const uint8_t cpu); uint8_t str2msr(char *str, struct msr *msr); |