ocvalidate: Drop RebaseRegions check

This commit is contained in:
PMheart 2021-01-13 16:59:12 +08:00 committed by vit9696
parent 019b85362b
commit b743c4635f
2 changed files with 0 additions and 15 deletions

View File

@ -27,7 +27,6 @@ Utility to validate whether a `config.plist` matches requirements and convention
### ACPI
#### Add
- Entry[N]->Path: Only `.aml` and `.bin` filename suffix are accepted.
- Entry[N]->Path: If a customised DSDT is added and enabled, `RebaseRegions` in `ACPI->Quirks` should be enabled.
### Booter
#### MmioWhitelist

View File

@ -59,11 +59,9 @@ CheckACPIAdd (
OC_ACPI_CONFIG *UserAcpi;
CONST CHAR8 *Path;
CONST CHAR8 *Comment;
BOOLEAN HasCustomDSDT;
ErrorCount = 0;
UserAcpi = &Config->Acpi;
HasCustomDSDT = FALSE;
for (Index = 0; Index < UserAcpi->Add.Count; ++Index) {
Path = OC_BLOB_GET (&UserAcpi->Add.Values[Index]->Path);
@ -86,10 +84,6 @@ CheckACPIAdd (
DEBUG ((DEBUG_WARN, "ACPI->Add[%u]->Path has filename suffix other than .aml and .bin!\n", Index));
++ErrorCount;
}
if (OcAsciiStriStr (Path, "DSDT") != NULL && UserAcpi->Add.Values[Index]->Enabled) {
HasCustomDSDT = TRUE;
}
}
//
@ -102,14 +96,6 @@ CheckACPIAdd (
ACPIAddHasDuplication
);
//
// Check for RebaseRegions when using customised DSDT.
//
if (HasCustomDSDT && !UserAcpi->Quirks.RebaseRegions) {
DEBUG ((DEBUG_WARN, "ACPI->Quirks->RebaseRegions is not enabled when customised DSDT table is in use!\n"));
++ErrorCount;
}
return ErrorCount;
}