mirror of
https://github.com/acpica/acpica/
synced 2025-01-29 20:55:19 +03:00
New data types/names; removed OUTRANGE macro.
date 99.07.12.23.26.00; author rmoore1; state Exp;
This commit is contained in:
parent
12895ca6a0
commit
89f77adedc
@ -265,7 +265,7 @@ NsDumpOneObject (
|
||||
|
||||
/* Check the integrity of our data */
|
||||
|
||||
if (OUTRANGE (Type, NsTypeNames))
|
||||
if (Type > INTERNAL_TYPE_MAX)
|
||||
{
|
||||
Type = TYPE_DefAny; /* prints as *ERROR* */
|
||||
}
|
||||
@ -311,7 +311,7 @@ NsDumpOneObject (
|
||||
|
||||
while (Value && (DebugLevel & TRACE_VALUES))
|
||||
{
|
||||
UINT8 bT = ((ACPI_OBJECT_INTERNAL *) Value)->ValType;
|
||||
UINT8 bT = ((ACPI_OBJECT_INTERNAL *) Value)->Type;
|
||||
|
||||
|
||||
DEBUG_PRINT_RAW (TRACE_TABLES,
|
||||
@ -332,7 +332,7 @@ NsDumpOneObject (
|
||||
* the above-listed variants of ACPI_OBJECT_INTERNAL have
|
||||
* compatible mappings.
|
||||
*/
|
||||
Value = ((ACPI_OBJECT_INTERNAL *)Value)->Buffer.Buffer;
|
||||
Value = ((ACPI_OBJECT_INTERNAL *)Value)->Buffer.Pointer;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -356,9 +356,10 @@ NsEvaluateByHandle (
|
||||
|
||||
if (ReturnObject)
|
||||
{
|
||||
/* Initialize the return value */
|
||||
/* Initialize the return value to an invalid object */
|
||||
|
||||
memset (ReturnObject, 0, sizeof (ACPI_OBJECT_INTERNAL));
|
||||
ReturnObject->Type = TYPE_Invalid;
|
||||
}
|
||||
|
||||
|
||||
@ -396,15 +397,13 @@ BREAKPOINT3;
|
||||
* descriptor provided by the caller.
|
||||
*/
|
||||
|
||||
/*
|
||||
* TBD: Translate to a different external object type here
|
||||
*/
|
||||
|
||||
if (ReturnObject)
|
||||
{
|
||||
/* Valid return object, copy the returned object that is on the stack */
|
||||
|
||||
(*ReturnObject) = *((ACPI_OBJECT_INTERNAL *) ObjStack[ObjStackTop]);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Now that the return value (object) has been copied, we must purge the stack
|
||||
* of the return value by deleting the object and popping the stack!
|
||||
@ -428,6 +427,8 @@ BREAKPOINT3;
|
||||
ObjStackTop = 0;
|
||||
}
|
||||
|
||||
/* Map AE_RETURN_VALUE to AE_OK, we are done with it */
|
||||
|
||||
Status = AE_OK;
|
||||
}
|
||||
|
||||
@ -579,9 +580,9 @@ NsGetObjectValue (
|
||||
|
||||
/* Construct a descriptor pointing to the name */
|
||||
|
||||
ObjDesc->Lvalue.ValType = (UINT8) TYPE_Lvalue;
|
||||
ObjDesc->Lvalue.Type = (UINT8) TYPE_Lvalue;
|
||||
ObjDesc->Lvalue.OpCode = (UINT8) AML_NameOp;
|
||||
ObjDesc->Lvalue.Ref = (void *) ObjectEntry;
|
||||
ObjDesc->Lvalue.Object = (void *) ObjectEntry;
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user