diff options
Diffstat (limited to 'resources/utilities/ich9deblob/src/descriptor/descriptor.c')
-rw-r--r-- | resources/utilities/ich9deblob/src/descriptor/descriptor.c | 18 |
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]); |