diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2011-01-21 07:04:05 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2011-01-21 07:04:05 +0000 |
commit | 0d4f6536b0b61ead20b4a8c2e1600dec513218e8 (patch) | |
tree | 62802bcc4a7918d360691203a45936d735518477 /util/nvramtool/lbtable.c | |
parent | 8ae82e370b7c293ccb6286a209abae79ffc0eb26 (diff) | |
download | coreboot-0d4f6536b0b61ead20b4a8c2e1600dec513218e8.tar.xz |
There's another place where nvramtool can look for
the CMOS checksum specification.
When using nvramtool on files (instead of CMOS and runtime firmware)
it's the only place.
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Acked-by: Stefan Reinauer <stepan@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6282 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/lbtable.c')
-rw-r--r-- | util/nvramtool/lbtable.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/nvramtool/lbtable.c b/util/nvramtool/lbtable.c index 3753737b7e..142937a6d8 100644 --- a/util/nvramtool/lbtable.c +++ b/util/nvramtool/lbtable.c @@ -632,6 +632,10 @@ static void get_cmos_checksum_info(void) checksum = (struct cmos_checksum *)find_lbrec(LB_TAG_OPTION_CHECKSUM); + if (checksum == NULL) { + checksum = (struct cmos_checksum *)next_cmos_rec((const struct lb_record *)first_cmos_table_enum(), LB_TAG_OPTION_CHECKSUM); + } + if (checksum != NULL) { /* We are lucky. The coreboot table hints us to the checksum. * We might have to check the type field here though. */ |