summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-29 16:41:04 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-29 16:41:04 (EST)
commit5a62702ae370a125997634f91a60dcb75204afc2 (patch)
treed0ca8f206c7968c96f7f062ab658d0b502e936f4
parent4b98a46ddc3f590d5e11a19359811d552aa9d08b (diff)
downloadlibreboot-5a62702ae370a125997634f91a60dcb75204afc2.zip
libreboot-5a62702ae370a125997634f91a60dcb75204afc2.tar.gz
libreboot-5a62702ae370a125997634f91a60dcb75204afc2.tar.bz2
ich9gen: show original flReg1.LIMIT, but commented out
-rw-r--r--resources/utilities/ich9deblob/src/descriptor/descriptor.c1
-rw-r--r--resources/utilities/ich9deblob/src/ich9gen/mkdescriptor.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/resources/utilities/ich9deblob/src/descriptor/descriptor.c b/resources/utilities/ich9deblob/src/descriptor/descriptor.c
index 3c9ef04..873fad1 100644
--- a/resources/utilities/ich9deblob/src/descriptor/descriptor.c
+++ b/resources/utilities/ich9deblob/src/descriptor/descriptor.c
@@ -251,6 +251,7 @@ int notCreatedCFileFromDescriptorStruct(struct DESCRIPTORREGIONRECORD descriptor
fprintf(fp, " /* FLREG1 (BIOS) */\n");
fprintf(fp, " descriptorStruct.regionSection.flReg1.BASE = 0x%04x; /* see ../descriptor/descriptor.c */\n", descriptorStruct.regionSection.flReg1.BASE);
fprintf(fp, " descriptorStruct.regionSection.flReg1.reserved1 = 0x%01x;\n", descriptorStruct.regionSection.flReg1.reserved1);
+ fprintf(fp, " /* descriptorStruct.regionSection.flReg1.LIMIT = 0x%04x; */\n", descriptorStruct.regionSection.flReg1.LIMIT);
fprintf(fp, " descriptorStruct.regionSection.flReg1.LIMIT = ((romSize >> FLREGIONBITSHIFT) - 1); /* see ../descriptor/descriptor.c */\n");
fprintf(fp, " descriptorStruct.regionSection.flReg1.reserved2 = 0x%01x;\n", descriptorStruct.regionSection.flReg1.reserved2);
fprintf(fp, " /* FLREG2 (ME) */\n");
diff --git a/resources/utilities/ich9deblob/src/ich9gen/mkdescriptor.c b/resources/utilities/ich9deblob/src/ich9gen/mkdescriptor.c
index 91f4ed4..fce6543 100644
--- a/resources/utilities/ich9deblob/src/ich9gen/mkdescriptor.c
+++ b/resources/utilities/ich9deblob/src/ich9gen/mkdescriptor.c
@@ -78,6 +78,7 @@ struct DESCRIPTORREGIONRECORD generatedDescriptorStruct(unsigned int romSize)
/* FLREG1 (BIOS) */
descriptorStruct.regionSection.flReg1.BASE = 0x0003; /* see ../descriptor/descriptor.c */
descriptorStruct.regionSection.flReg1.reserved1 = 0x0;
+ /* descriptorStruct.regionSection.flReg1.LIMIT = 0x07ff; */
descriptorStruct.regionSection.flReg1.LIMIT = ((romSize >> FLREGIONBITSHIFT) - 1); /* see ../descriptor/descriptor.c */
descriptorStruct.regionSection.flReg1.reserved2 = 0x0;
/* FLREG2 (ME) */