From d172497dee39a169d9088a92ec1ff25ecc24a710 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 13 Nov 2012 14:45:38 +0100 Subject: mainboard/siemens/sitemp_g1p1: Fix CMOS checksum algorithm here, too Some time ago our CMOS checksum algorithm was changed under the topic: Fix our CMOS checksum algorithm so it matches what /dev/nvram expects Here is another copy of the algorithm that had to be updated. Change-Id: I58659c7b8a89c89c76efdff405ee0620e7302277 Signed-off-by: Nico Huber Reviewed-on: http://review.coreboot.org/1852 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/mainboard/siemens/sitemp_g1p1/romstage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/siemens/sitemp_g1p1/romstage.c') diff --git a/src/mainboard/siemens/sitemp_g1p1/romstage.c b/src/mainboard/siemens/sitemp_g1p1/romstage.c index 0c61e5d3fc..141b0fae7f 100644 --- a/src/mainboard/siemens/sitemp_g1p1/romstage.c +++ b/src/mainboard/siemens/sitemp_g1p1/romstage.c @@ -147,7 +147,7 @@ static inline int cmos_chksum_valid(void) { #if DUMP_CMOS_RAM __DEBUG__("\n"); #endif - sum = (sum & 0xffff) ^ 0xffff; + sum = (sum & 0xffff); /* Read the stored checksum */ outb(LB_CKS_LOC, 0x72); -- cgit v1.2.3