diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2011-10-21 14:37:52 -0700 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2011-10-22 18:41:32 +0200 |
commit | d7ecfa7c152da59cf76b5dfd8ff4ef1313a74260 (patch) | |
tree | f302c60292ada53d8c26a669747515c2446787a3 /payloads/libpayload | |
parent | 1c795ad109bd382ff75e92d83f5721b8ed7c3be1 (diff) |
Fix CMOS checksum calculation in libpayload.
Change-Id: I64ea53fa098fbcfc76e0ebd5f049a2ee3d0a1024
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/314
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/drivers/options.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/options.c b/payloads/libpayload/drivers/options.c index fdb4be34bb..394c7920ec 100644 --- a/payloads/libpayload/drivers/options.c +++ b/payloads/libpayload/drivers/options.c @@ -41,7 +41,6 @@ static int options_checksum_valid(void) for(i = range_start; i <= range_end; i++) { checksum += nvram_read(i); } - checksum = (~checksum)&0xffff; checksum_old = ((nvram_read(checksum_location)<<8) | nvram_read(checksum_location+1)); @@ -59,7 +58,6 @@ void fix_options_checksum(void) for(i = range_start; i <= range_end; i++) { checksum += nvram_read(i); } - checksum = (~checksum)&0xffff; nvram_write((checksum >> 8), checksum_location); nvram_write((checksum & 0xff), checksum_location + 1); |