iASL: Fix predefined name object regression.

Fixes a problem introduced in version 20100304. An error is incorrectly
generated if a predefined name is declared as a static named object with
a value defined using the keywords "Zero", "One", or "Ones". Lin Ming.
This commit is contained in:
Robert Moore 2010-03-12 10:28:45 -08:00
parent 9dff111362
commit 1690062af9

View File

@ -441,7 +441,7 @@ ApCheckForPredefinedName (
*
* RETURN: None
*
* DESCRIPTION: Check for the "special" predefined names -
* DESCRIPTION: Check for the "special" predefined names -
* _Lxx, _Exx, _Qxx, and _T_x
*
******************************************************************************/
@ -534,6 +534,9 @@ ApCheckObjectType (
switch (Op->Asl.ParseOpcode)
{
case PARSEOP_ZERO:
case PARSEOP_ONE:
case PARSEOP_ONES:
case PARSEOP_INTEGER:
ReturnBtype = ACPI_RTYPE_INTEGER;
break;
@ -552,7 +555,7 @@ ApCheckObjectType (
default:
/* Not one of the supported object types */
goto TypeErrorExit;
}