aboutsummaryrefslogtreecommitdiff
path: root/util/msrtool/msrtool.h
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2010-01-17 18:33:53 +0000
committerPeter Stuge <peter@stuge.se>2010-01-17 18:33:53 +0000
commit34f2907a1b969270e92281849cfdfc43c343799c (patch)
treeff4562be914b01b10e9fdda313f7d97d90140705 /util/msrtool/msrtool.h
parent838c5a5d8019eff857dac21c24a2bca624fa3152 (diff)
msrtool: Add endptr to str2msr() showing how many characters were parsed
This also introduces a small change in the user interface for immediate mode (-i). Previously, whitespace could separate high and low words in an MSR as such: msrtool -i 4c00000f='f2f100ff 56960004' That is no longer allowed, a space character now ends the MSR value. Any other character can still be used as separator however, so the following syntax still works as expected: msrtool -i 4c00000f=f2f100ff:56960004 Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5032 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/msrtool/msrtool.h')
-rw-r--r--util/msrtool/msrtool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/msrtool/msrtool.h b/util/msrtool/msrtool.h
index d8fc00f3fb..cf77b49707 100644
--- a/util/msrtool/msrtool.h
+++ b/util/msrtool/msrtool.h
@@ -170,7 +170,7 @@ const struct msrdef *findmsrdef(const uint32_t addr);
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);
+uint8_t str2msr(char *str, struct msr *msr, char **endptr);
void decodemsr(const uint8_t cpu, const uint32_t addr, const struct msr val);
uint8_t diff_msr(FILE *fout, const uint32_t addr, const struct msr a, const struct msr b);