mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 01:44:33 +03:00
Added support for constants Zero, Ones, One, Revision
date 2001.12.03.16.59.00; author rmoore1; state Exp;
This commit is contained in:
parent
13714f26c0
commit
0b87a7f5e3
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: utobject - ACPI object create/delete/size/cache routines
|
||||
* $Revision: 1.63 $
|
||||
* $Revision: 1.64 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -462,25 +462,38 @@ AcpiUtGetSimpleObjectSize (
|
||||
|
||||
case INTERNAL_TYPE_REFERENCE:
|
||||
|
||||
/*
|
||||
* The only type that should be here is internal opcode NAMEPATH_OP -- since
|
||||
* this means an object reference
|
||||
*/
|
||||
if (InternalObject->Reference.Opcode != AML_INT_NAMEPATH_OP)
|
||||
switch (InternalObject->Reference.Opcode)
|
||||
{
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
|
||||
"Unsupported Reference opcode=%X in object %p\n",
|
||||
InternalObject->Reference.Opcode, InternalObject));
|
||||
Status = AE_TYPE;
|
||||
}
|
||||
case AML_ZERO_OP:
|
||||
case AML_ONE_OP:
|
||||
case AML_ONES_OP:
|
||||
case AML_REVISION_OP:
|
||||
|
||||
/* These Constant opcodes will be resolved to Integers */
|
||||
|
||||
break;
|
||||
|
||||
case AML_INT_NAMEPATH_OP:
|
||||
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Get the actual length of the full pathname to this object.
|
||||
* The reference will be converted to the pathname to the object
|
||||
*/
|
||||
Length += ROUND_UP_TO_NATIVE_WORD (AcpiNsGetPathnameLength (InternalObject->Reference.Node));
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
/*
|
||||
* No other reference opcodes are supported.
|
||||
* Notably, Locals and Args are not supported, by this may be
|
||||
* required eventually.
|
||||
*/
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
|
||||
"Unsupported Reference opcode=%X in object %p\n",
|
||||
InternalObject->Reference.Opcode, InternalObject));
|
||||
Status = AE_TYPE;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user