summaryrefslogtreecommitdiffstats
path: root/resources/utilities/ich9deblob/src/descriptor
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-29 22:43:00 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-29 23:16:40 (EST)
commitf7e4961c04808311c55a018096b81ce6852d992e (patch)
tree5a270ea4c37553cf5c1fc6722f70f380505644ab /resources/utilities/ich9deblob/src/descriptor
parent3e60ad76e2cef38bc59f6055c677ea2d890e10fe (diff)
downloadlibreboot-f7e4961c04808311c55a018096b81ce6852d992e.zip
libreboot-f7e4961c04808311c55a018096b81ce6852d992e.tar.gz
libreboot-f7e4961c04808311c55a018096b81ce6852d992e.tar.bz2
ich9deblob/ich9gen: change descriptor OEM string to LIBERATE
Diffstat (limited to 'resources/utilities/ich9deblob/src/descriptor')
-rw-r--r--resources/utilities/ich9deblob/src/descriptor/descriptor.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/resources/utilities/ich9deblob/src/descriptor/descriptor.c b/resources/utilities/ich9deblob/src/descriptor/descriptor.c
index 6b7a75b..3ef2673 100644
--- a/resources/utilities/ich9deblob/src/descriptor/descriptor.c
+++ b/resources/utilities/ich9deblob/src/descriptor/descriptor.c
@@ -97,7 +97,7 @@ struct DESCRIPTORREGIONRECORD deblobbedDescriptorStructFromFactory(struct DESCRI
*
* To disable a region, set the BASE to 1FFF. Shifted by FLREGIONBITSHIFT,
* this puts the beginning of that region well outside the ROM image.
- * Also set the LIMIT (size) to 0.
+ * Also set the LIMIT to 0.
*/
/* Disable (delete) the ME region */
deblobbedDescriptorStruct.regionSection.flReg2.BASE = 0x1FFF;
@@ -136,6 +136,21 @@ struct DESCRIPTORREGIONRECORD deblobbedDescriptorStructFromFactory(struct DESCRI
* (this is probably redundant, since the ME is already removed from libreboot) */
deblobbedDescriptorStruct = descriptorMeRegionsForbidden(deblobbedDescriptorStruct);
+ /*
+ * Miscellaneous
+ * -------------
+ */
+
+ /* Set OEM string to "LIBERATE" */
+ deblobbedDescriptorStruct.oemSection.magicString[0] = 0x4C;
+ deblobbedDescriptorStruct.oemSection.magicString[1] = 0x49;
+ deblobbedDescriptorStruct.oemSection.magicString[2] = 0x42;
+ deblobbedDescriptorStruct.oemSection.magicString[3] = 0x45;
+ deblobbedDescriptorStruct.oemSection.magicString[4] = 0x52;
+ deblobbedDescriptorStruct.oemSection.magicString[5] = 0x41;
+ deblobbedDescriptorStruct.oemSection.magicString[6] = 0x54;
+ deblobbedDescriptorStruct.oemSection.magicString[7] = 0x45;
+
return deblobbedDescriptorStruct;
}
@@ -474,6 +489,7 @@ int notCreatedCFileFromDescriptorStruct(struct DESCRIPTORREGIONRECORD descriptor
fprintf(fp, "\n");
/* OEM section */
fprintf(fp, " /* OEM section */\n");
+ fprintf(fp, " /* see ../descriptor/descriptor.c */\n");
fprintf(fp, " /* Magic String (ascii characters) */\n");
for(i = 0; i < 8; i++) {
fprintf(fp, " descriptorStruct.oemSection.magicString[%d] = 0x%02x;\n", i, descriptorStruct.oemSection.magicString[i]);