summaryrefslogtreecommitdiffstats
path: root/resources/utilities/ich9deblob/gbe/gbe.c
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-23 21:20:47 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-23 21:20:47 (EST)
commit44dbb6e5e4160ff8663df9f176bb6313cabb8ad1 (patch)
treec143757549e2e12af04c31d949159e3963a72f09 /resources/utilities/ich9deblob/gbe/gbe.c
parent7f550097fa1089c6072e3373648a2278ee3b89d4 (diff)
downloadlibreboot-44dbb6e5e4160ff8663df9f176bb6313cabb8ad1.zip
libreboot-44dbb6e5e4160ff8663df9f176bb6313cabb8ad1.tar.gz
libreboot-44dbb6e5e4160ff8663df9f176bb6313cabb8ad1.tar.bz2
ich9deblob: add define for 0xBABA gbe checksum and use it
Diffstat (limited to 'resources/utilities/ich9deblob/gbe/gbe.c')
-rw-r--r--resources/utilities/ich9deblob/gbe/gbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/utilities/ich9deblob/gbe/gbe.c b/resources/utilities/ich9deblob/gbe/gbe.c
index 3caa3ee..417f37b 100644
--- a/resources/utilities/ich9deblob/gbe/gbe.c
+++ b/resources/utilities/ich9deblob/gbe/gbe.c
@@ -86,7 +86,7 @@ struct GBEREGIONRECORD_8K deblobbedGbeStructFromFactory(struct GBEREGIONRECORD_8
struct GBEREGIONRECORD_8K deblobbedGbeStruct8k;
memcpy(&deblobbedGbeStruct8k, &factoryGbeStruct8k, GBEREGIONSIZE_8K);
- deblobbedGbeStruct8k.backup.checkSum = gbeGetChecksumFrom4kStruct(deblobbedGbeStruct8k.backup, 0xBABA);
+ deblobbedGbeStruct8k.backup.checkSum = gbeGetChecksumFrom4kStruct(deblobbedGbeStruct8k.backup, GBECHECKSUMTOTAL);
memcpy(&deblobbedGbeStruct8k.main, &deblobbedGbeStruct8k.backup, GBEREGIONSIZE_4K);
return deblobbedGbeStruct8k;
@@ -108,7 +108,7 @@ void printGbeChecksumDataFromStruct4k(struct GBEREGIONRECORD_4K gbeStruct4k, cha
"%s Gbe (%s): calculated Gbe checksum: 0x%hx and actual GBe checksum: 0x%hx\n",
romName,
regionName,
- gbeGetChecksumFrom4kStruct(gbeStruct4k, 0xBABA),
+ gbeGetChecksumFrom4kStruct(gbeStruct4k, GBECHECKSUMTOTAL),
gbeStruct4k.checkSum
);
}