mirror of
https://github.com/acpica/acpica/
synced 2025-01-21 00:42:02 +03:00
Added varparams to the _REPORT_xxx interfaces; 16-bit fixes
date 2000.09.20.20.51.00; author rmoore1; state Exp;
This commit is contained in:
parent
c09e68537f
commit
4f0e64ecd3
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: dswload - Dispatcher namespace load callbacks
|
||||
* $Revision: 1.21 $
|
||||
* $Revision: 1.23 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -188,6 +188,12 @@ AcpiDsLoad1BeginOp (
|
||||
("Load1BeginOp: State=%p Op=%p Type=%x\n", WalkState, Op, DataType));
|
||||
|
||||
|
||||
if (Opcode == AML_SCOPE_OP)
|
||||
{
|
||||
DEBUG_PRINT (TRACE_DISPATCH,
|
||||
("Load1BeginOp: State=%p Op=%p Type=%x\n", WalkState, Op, DataType));
|
||||
}
|
||||
|
||||
/*
|
||||
* Enter the named type into the internal namespace. We enter the name
|
||||
* as we go downward in the parse tree. Any necessary subobjects that involve
|
||||
@ -659,8 +665,6 @@ AcpiDsLoad2EndOp (
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: dswscope - Scope stack manipulation
|
||||
* $Revision: 1.60 $
|
||||
* $Revision: 1.39 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
|
||||
* All rights reserved.
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* reserved.
|
||||
*
|
||||
* 2. License
|
||||
*
|
||||
@ -117,11 +117,12 @@
|
||||
#define __DSWSCOPE_C__
|
||||
|
||||
#include "acpi.h"
|
||||
#include "acinterp.h"
|
||||
#include "acdispat.h"
|
||||
|
||||
|
||||
#define _COMPONENT ACPI_DISPATCHER
|
||||
ACPI_MODULE_NAME ("dswscope")
|
||||
#define _COMPONENT NAMESPACE
|
||||
MODULE_NAME ("dswscope")
|
||||
|
||||
|
||||
#define STACK_POP(head) head
|
||||
@ -144,8 +145,6 @@ AcpiDsScopeStackClear (
|
||||
{
|
||||
ACPI_GENERIC_STATE *ScopeInfo;
|
||||
|
||||
ACPI_FUNCTION_NAME ("DsScopeStackClear");
|
||||
|
||||
|
||||
while (WalkState->ScopeInfo)
|
||||
{
|
||||
@ -154,9 +153,9 @@ AcpiDsScopeStackClear (
|
||||
ScopeInfo = WalkState->ScopeInfo;
|
||||
WalkState->ScopeInfo = ScopeInfo->Scope.Next;
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
|
||||
"Popped object type (%s)\n", AcpiUtGetTypeName (ScopeInfo->Common.Value)));
|
||||
AcpiUtDeleteGenericState (ScopeInfo);
|
||||
DEBUG_PRINT (TRACE_EXEC,
|
||||
("Popped object type 0x%X\n", ScopeInfo->Common.Value));
|
||||
AcpiCmDeleteGenericState (ScopeInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@ -176,34 +175,34 @@ AcpiDsScopeStackClear (
|
||||
ACPI_STATUS
|
||||
AcpiDsScopeStackPush (
|
||||
ACPI_NAMESPACE_NODE *Node,
|
||||
ACPI_OBJECT_TYPE Type,
|
||||
OBJECT_TYPE_INTERNAL Type,
|
||||
ACPI_WALK_STATE *WalkState)
|
||||
{
|
||||
ACPI_GENERIC_STATE *ScopeInfo;
|
||||
ACPI_GENERIC_STATE *OldScopeInfo;
|
||||
|
||||
|
||||
ACPI_FUNCTION_TRACE ("DsScopeStackPush");
|
||||
FUNCTION_TRACE ("DsScopeStackPush");
|
||||
|
||||
|
||||
if (!Node)
|
||||
{
|
||||
/* Invalid scope */
|
||||
/* invalid scope */
|
||||
|
||||
ACPI_REPORT_ERROR (("DsScopeStackPush: null scope passed\n"));
|
||||
REPORT_ERROR (("DsScopeStackPush: null scope passed\n"));
|
||||
return_ACPI_STATUS (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
/* Make sure object type is valid */
|
||||
|
||||
if (!AcpiUtValidObjectType (Type))
|
||||
if (!AcpiAmlValidateObjectType (Type))
|
||||
{
|
||||
ACPI_REPORT_WARNING (("DsScopeStackPush: Invalid object type: 0x%X\n", Type));
|
||||
REPORT_WARNING (("DsScopeStackPush: type code out of range\n"));
|
||||
}
|
||||
|
||||
|
||||
/* Allocate a new scope object */
|
||||
|
||||
ScopeInfo = AcpiUtCreateGenericState ();
|
||||
ScopeInfo = AcpiCmCreateGenericState ();
|
||||
if (!ScopeInfo)
|
||||
{
|
||||
return_ACPI_STATUS (AE_NO_MEMORY);
|
||||
@ -211,37 +210,13 @@ AcpiDsScopeStackPush (
|
||||
|
||||
/* Init new scope object */
|
||||
|
||||
ScopeInfo->Common.DataType = ACPI_DESC_TYPE_STATE_WSCOPE;
|
||||
ScopeInfo->Scope.Node = Node;
|
||||
ScopeInfo->Common.Value = (UINT16) Type;
|
||||
|
||||
WalkState->ScopeDepth++;
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
|
||||
"[%.2d] Pushed scope ", (UINT32) WalkState->ScopeDepth));
|
||||
|
||||
OldScopeInfo = WalkState->ScopeInfo;
|
||||
if (OldScopeInfo)
|
||||
{
|
||||
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC,
|
||||
"[%4.4s] (%s)",
|
||||
AcpiUtGetNodeName (OldScopeInfo->Scope.Node),
|
||||
AcpiUtGetTypeName (OldScopeInfo->Common.Value)));
|
||||
}
|
||||
else
|
||||
{
|
||||
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC,
|
||||
"[\\___] (%s)", "ROOT"));
|
||||
}
|
||||
|
||||
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC,
|
||||
", New scope -> [%4.4s] (%s)\n",
|
||||
AcpiUtGetNodeName (ScopeInfo->Scope.Node),
|
||||
AcpiUtGetTypeName (ScopeInfo->Common.Value)));
|
||||
ScopeInfo->Scope.Node = Node;
|
||||
ScopeInfo->Common.Value = (UINT16) Type;
|
||||
|
||||
/* Push new scope object onto stack */
|
||||
|
||||
AcpiUtPushGenericState (&WalkState->ScopeInfo, ScopeInfo);
|
||||
AcpiCmPushGenericState (&WalkState->ScopeInfo, ScopeInfo);
|
||||
|
||||
return_ACPI_STATUS (AE_OK);
|
||||
}
|
||||
|
||||
@ -268,44 +243,25 @@ AcpiDsScopeStackPop (
|
||||
ACPI_WALK_STATE *WalkState)
|
||||
{
|
||||
ACPI_GENERIC_STATE *ScopeInfo;
|
||||
ACPI_GENERIC_STATE *NewScopeInfo;
|
||||
|
||||
|
||||
ACPI_FUNCTION_TRACE ("DsScopeStackPop");
|
||||
|
||||
FUNCTION_TRACE ("DsScopeStackPop");
|
||||
|
||||
/*
|
||||
* Pop scope info object off the stack.
|
||||
*/
|
||||
ScopeInfo = AcpiUtPopGenericState (&WalkState->ScopeInfo);
|
||||
|
||||
ScopeInfo = AcpiCmPopGenericState (&WalkState->ScopeInfo);
|
||||
if (!ScopeInfo)
|
||||
{
|
||||
return_ACPI_STATUS (AE_STACK_UNDERFLOW);
|
||||
}
|
||||
|
||||
WalkState->ScopeDepth--;
|
||||
DEBUG_PRINT (TRACE_EXEC,
|
||||
("Popped object type 0x%X\n", ScopeInfo->Common.Value));
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
|
||||
"[%.2d] Popped scope [%4.4s] (%s), New scope -> ",
|
||||
(UINT32) WalkState->ScopeDepth,
|
||||
AcpiUtGetNodeName (ScopeInfo->Scope.Node),
|
||||
AcpiUtGetTypeName (ScopeInfo->Common.Value)));
|
||||
AcpiCmDeleteGenericState (ScopeInfo);
|
||||
|
||||
NewScopeInfo = WalkState->ScopeInfo;
|
||||
if (NewScopeInfo)
|
||||
{
|
||||
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC,
|
||||
"[%4.4s] (%s)\n",
|
||||
AcpiUtGetNodeName (NewScopeInfo->Scope.Node),
|
||||
AcpiUtGetTypeName (NewScopeInfo->Common.Value)));
|
||||
}
|
||||
else
|
||||
{
|
||||
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC,
|
||||
"[\\___] (ROOT)\n"));
|
||||
}
|
||||
|
||||
AcpiUtDeleteGenericState (ScopeInfo);
|
||||
return_ACPI_STATUS (AE_OK);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user