mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 01:14:46 +03:00
Support for new scope stack interfaces
date 2000.01.13.22.23.00; author rmoore1; state Exp;
This commit is contained in:
parent
28f307c3cd
commit
c3b9c4a8a0
@ -481,18 +481,22 @@ NsExecuteControlMethod (
|
||||
ObjDesc->Method.Pcode + 1,
|
||||
ObjDesc->Method.PcodeLength - 1));
|
||||
|
||||
NsDumpPathname (MethodEntry->Scope, "NsExecuteControlMethod: Setting scope to",
|
||||
DUMP_PATHNAME (MethodEntry->Scope, "NsExecuteControlMethod: Setting scope to",
|
||||
TRACE_NAMES, _COMPONENT);
|
||||
|
||||
/* Reset the current scope to the beginning of scope stack */
|
||||
|
||||
Gbl_CurrentScope = &Gbl_ScopeStack[0];
|
||||
NsScopeStackClear ();
|
||||
|
||||
/* Push current scope on scope stack and make Method->Scope current */
|
||||
|
||||
NsPushCurrentScope (MethodEntry->Scope, ACPI_TYPE_Method);
|
||||
Status = NsScopeStackPush (MethodEntry->Scope, ACPI_TYPE_Method);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
NsDumpPathname (MethodEntry, "NsExecuteControlMethod: Executing",
|
||||
DUMP_PATHNAME (MethodEntry, "NsExecuteControlMethod: Executing",
|
||||
TRACE_NAMES, _COMPONENT);
|
||||
|
||||
DEBUG_PRINT (TRACE_NAMES, ("At offset %8XH\n",
|
||||
@ -517,12 +521,9 @@ NsExecuteControlMethod (
|
||||
}
|
||||
#endif
|
||||
|
||||
if (AmlMthStackLevel () > -1)
|
||||
{
|
||||
/* Method stack not empty at method exit and should be */
|
||||
/* If this was a nested method call, the method stack won't be empty */
|
||||
|
||||
REPORT_ERROR ("Method stack not empty at method exit");
|
||||
}
|
||||
/* Check the object stack */
|
||||
|
||||
if ((AmlObjStackLevel ()) &&
|
||||
(Status != AE_RETURN_VALUE))
|
||||
|
Loading…
x
Reference in New Issue
Block a user