mirror of
https://github.com/acpica/acpica/
synced 2025-01-18 07:29:20 +03:00
In NsLookUp(), relaxed the TypeToCheckFor to ACPI_TYPE_Any when the
argument Type is an INTERNAL_TYPE_BankFieldDefn. date 2000.04.03.21.51.00; author mwalz; state Exp;
This commit is contained in:
parent
eb236905c1
commit
be27933e52
@ -377,13 +377,24 @@ NsLookup (
|
||||
}
|
||||
|
||||
|
||||
/* DefFieldDefn and BankFieldDefn define fields in a Region */
|
||||
/*
|
||||
* This check is explicitly split provide relax the TypeToCheckFor
|
||||
* conditions for BankFieldDefn. Originally, both BankFieldDefn and
|
||||
* DefFieldDefn caused TypeToCheckFor to be set to ACPI_TYPE_Region,
|
||||
* but the BankFieldDefn may also check for a Field definition as well
|
||||
* as an OperationRegion.
|
||||
*/
|
||||
/* DefFieldDefn defines fields in a Region */
|
||||
|
||||
if (INTERNAL_TYPE_DefFieldDefn == Type ||
|
||||
INTERNAL_TYPE_BankFieldDefn == Type)
|
||||
if (INTERNAL_TYPE_DefFieldDefn == Type)
|
||||
{
|
||||
TypeToCheckFor = ACPI_TYPE_Region;
|
||||
}
|
||||
/* BankFieldDefn defines data fields in a Field Object */
|
||||
else if (INTERNAL_TYPE_BankFieldDefn == Type)
|
||||
{
|
||||
TypeToCheckFor = ACPI_TYPE_Any;
|
||||
}
|
||||
else
|
||||
{
|
||||
TypeToCheckFor = Type;
|
||||
@ -556,7 +567,7 @@ NsLookup (
|
||||
/* Complain about type mismatch */
|
||||
|
||||
REPORT_WARNING ("Type mismatch");
|
||||
DEBUG_PRINT (ACPI_WARN, ("NsLookup: %4.4s, type %X, checking for type %X\n",
|
||||
DEBUG_PRINT (ACPI_WARN, ("NsLookup: %4.4s, type 0x%X, checking for type 0x%X\n",
|
||||
Name, ThisEntry->Type, TypeToCheckFor));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user