From patchwork Thu Jan 20 13:31:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: nvramtool: Look at another place for the CMOS checksum specification Date: Thu, 20 Jan 2011 13:31:38 -0000 From: Patrick Georgi X-Patchwork-Id: 2539 Message-Id: <1295530298.10580.20.camel@linux-0a8x.site> To: Hi, This patch tells nvramtool about another place where it can find information about the CMOS checksum location and range before it reverts to its own default values. Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer Index: coreboot/util/nvramtool/lbtable.c =================================================================== --- coreboot.orig/util/nvramtool/lbtable.c +++ coreboot/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. */