1 /******************************************************************************
3 * Module Name: dswload - Dispatcher namespace load callbacks
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2015, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
44 #include <contrib/dev/acpica/compiler/aslcompiler.h>
45 #include <contrib/dev/acpica/include/amlcode.h>
46 #include <contrib/dev/acpica/include/acdispat.h>
47 #include <contrib/dev/acpica/include/acnamesp.h>
49 #include "aslcompiler.y.h"
51 #define _COMPONENT ACPI_COMPILER
52 ACPI_MODULE_NAME ("aslload")
54 /* Local prototypes */
58 ACPI_PARSE_OBJECT *Op,
59 ACPI_WALK_STATE *WalkState);
62 LdLoadResourceElements (
63 ACPI_PARSE_OBJECT *Op,
64 ACPI_WALK_STATE *WalkState);
68 ACPI_PARSE_OBJECT *Op,
74 ACPI_PARSE_OBJECT *Op,
79 LdCommonNamespaceEnd (
80 ACPI_PARSE_OBJECT *Op,
85 /*******************************************************************************
87 * FUNCTION: LdLoadNamespace
89 * PARAMETERS: RootOp - Root of the parse tree
93 * DESCRIPTION: Perform a walk of the parse tree that in turn loads all of the
94 * named ASL/AML objects into the namespace. The namespace is
95 * constructed in order to resolve named references and references
96 * to named fields within resource templates/descriptors.
98 ******************************************************************************/
102 ACPI_PARSE_OBJECT *RootOp)
104 ACPI_WALK_STATE *WalkState;
107 DbgPrint (ASL_DEBUG_OUTPUT, "\nCreating namespace\n\n");
109 /* Create a new walk state */
111 WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL);
114 return (AE_NO_MEMORY);
117 /* Walk the entire parse tree, first pass */
119 TrWalkParseTree (RootOp, ASL_WALK_VISIT_TWICE, LdNamespace1Begin,
120 LdCommonNamespaceEnd, WalkState);
122 /* Second pass to handle forward references */
124 TrWalkParseTree (RootOp, ASL_WALK_VISIT_TWICE, LdNamespace2Begin,
125 LdCommonNamespaceEnd, WalkState);
127 /* Dump the namespace if debug is enabled */
129 AcpiNsDumpTables (ACPI_NS_ALL, ACPI_UINT32_MAX);
130 ACPI_FREE (WalkState);
135 /*******************************************************************************
137 * FUNCTION: LdLoadFieldElements
139 * PARAMETERS: Op - Parent node (Field)
140 * WalkState - Current walk state
144 * DESCRIPTION: Enter the named elements of the field (children of the parent)
145 * into the namespace.
147 ******************************************************************************/
150 LdLoadFieldElements (
151 ACPI_PARSE_OBJECT *Op,
152 ACPI_WALK_STATE *WalkState)
154 ACPI_PARSE_OBJECT *Child = NULL;
155 ACPI_NAMESPACE_NODE *Node;
159 /* Get the first named field element */
161 switch (Op->Asl.AmlOpcode)
163 case AML_BANK_FIELD_OP:
165 Child = UtGetArg (Op, 6);
168 case AML_INDEX_FIELD_OP:
170 Child = UtGetArg (Op, 5);
175 Child = UtGetArg (Op, 4);
180 /* No other opcodes should arrive here */
182 return (AE_BAD_PARAMETER);
185 /* Enter all elements into the namespace */
189 switch (Child->Asl.AmlOpcode)
191 case AML_INT_RESERVEDFIELD_OP:
192 case AML_INT_ACCESSFIELD_OP:
193 case AML_INT_CONNECTION_OP:
198 Status = AcpiNsLookup (WalkState->ScopeInfo,
199 Child->Asl.Value.String,
200 ACPI_TYPE_LOCAL_REGION_FIELD,
201 ACPI_IMODE_LOAD_PASS1,
202 ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE |
203 ACPI_NS_ERROR_IF_FOUND,
205 if (ACPI_FAILURE (Status))
207 if (Status != AE_ALREADY_EXISTS)
209 AslError (ASL_ERROR, ASL_MSG_CORE_EXCEPTION, Child,
210 Child->Asl.Value.String);
215 * The name already exists in this scope
216 * But continue processing the elements
218 AslError (ASL_ERROR, ASL_MSG_NAME_EXISTS, Child,
219 Child->Asl.Value.String);
223 Child->Asl.Node = Node;
229 Child = Child->Asl.Next;
236 /*******************************************************************************
238 * FUNCTION: LdLoadResourceElements
240 * PARAMETERS: Op - Parent node (Resource Descriptor)
241 * WalkState - Current walk state
245 * DESCRIPTION: Enter the named elements of the resource descriptor (children
246 * of the parent) into the namespace.
248 * NOTE: In the real AML namespace, these named elements never exist. But
249 * we simply use the namespace here as a symbol table so we can look
250 * them up as they are referenced.
252 ******************************************************************************/
255 LdLoadResourceElements (
256 ACPI_PARSE_OBJECT *Op,
257 ACPI_WALK_STATE *WalkState)
259 ACPI_PARSE_OBJECT *InitializerOp = NULL;
260 ACPI_NAMESPACE_NODE *Node;
265 * Enter the resource name into the namespace. Name must not already exist.
266 * This opens a scope, so later field names are guaranteed to be new/unique.
268 Status = AcpiNsLookup (WalkState->ScopeInfo, Op->Asl.Namepath,
269 ACPI_TYPE_LOCAL_RESOURCE, ACPI_IMODE_LOAD_PASS1,
270 ACPI_NS_NO_UPSEARCH | ACPI_NS_ERROR_IF_FOUND,
272 if (ACPI_FAILURE (Status))
274 if (Status == AE_ALREADY_EXISTS)
276 /* Actual node causing the error was saved in ParentMethod */
278 AslError (ASL_ERROR, ASL_MSG_NAME_EXISTS,
279 (ACPI_PARSE_OBJECT *) Op->Asl.ParentMethod, Op->Asl.Namepath);
285 Node->Value = (UINT32) Op->Asl.Value.Integer;
290 * Now enter the predefined fields, for easy lookup when referenced
293 InitializerOp = ASL_GET_CHILD_NODE (Op);
294 while (InitializerOp)
296 if (InitializerOp->Asl.ExternalName)
298 Status = AcpiNsLookup (WalkState->ScopeInfo,
299 InitializerOp->Asl.ExternalName,
300 ACPI_TYPE_LOCAL_RESOURCE_FIELD,
301 ACPI_IMODE_LOAD_PASS1,
302 ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE,
304 if (ACPI_FAILURE (Status))
310 * Store the field offset and length in the namespace node
311 * so it can be used when the field is referenced
313 Node->Value = InitializerOp->Asl.Value.Tag.BitOffset;
314 Node->Length = InitializerOp->Asl.Value.Tag.BitLength;
315 InitializerOp->Asl.Node = Node;
316 Node->Op = InitializerOp;
319 InitializerOp = ASL_GET_PEER_NODE (InitializerOp);
326 /*******************************************************************************
328 * FUNCTION: LdNamespace1Begin
330 * PARAMETERS: ASL_WALK_CALLBACK
334 * DESCRIPTION: Descending callback used during the parse tree walk. If this
335 * is a named AML opcode, enter into the namespace
337 ******************************************************************************/
341 ACPI_PARSE_OBJECT *Op,
345 ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context;
346 ACPI_NAMESPACE_NODE *Node;
348 ACPI_OBJECT_TYPE ObjectType;
349 ACPI_OBJECT_TYPE ActualObjectType = ACPI_TYPE_ANY;
351 UINT32 Flags = ACPI_NS_NO_UPSEARCH;
352 ACPI_PARSE_OBJECT *Arg;
354 BOOLEAN ForceNewScope = FALSE;
357 ACPI_FUNCTION_NAME (LdNamespace1Begin);
358 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op %p [%s]\n",
359 Op, Op->Asl.ParseOpName));
362 * We are only interested in opcodes that have an associated name
363 * (or multiple names)
365 switch (Op->Asl.AmlOpcode)
367 case AML_BANK_FIELD_OP:
368 case AML_INDEX_FIELD_OP:
371 Status = LdLoadFieldElements (Op, WalkState);
374 case AML_INT_CONNECTION_OP:
377 if (Op->Asl.Child->Asl.AmlOpcode != AML_INT_NAMEPATH_OP)
383 Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Asl.ExternalName,
384 ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT,
386 if (ACPI_FAILURE (Status))
391 if (Node->Type == ACPI_TYPE_BUFFER)
393 Arg->Asl.Node = Node;
395 Arg = Node->Op->Asl.Child; /* Get namepath */
396 Arg = Arg->Asl.Next; /* Get actual buffer */
397 Arg = Arg->Asl.Child; /* Buffer length */
398 Arg = Arg->Asl.Next; /* RAW_DATA buffer */
404 /* All other opcodes go below */
409 /* Check if this object has already been installed in the namespace */
416 Path = Op->Asl.Namepath;
422 /* Map the raw opcode into an internal object type */
424 switch (Op->Asl.ParseOpcode)
428 Arg = Op->Asl.Child; /* Get the NameSeg/NameString node */
429 Arg = Arg->Asl.Next; /* First peer is the object to be associated with the name */
432 * If this name refers to a ResourceTemplate, we will need to open
433 * a new scope so that the resource subfield names can be entered into
434 * the namespace underneath this name
436 if (Op->Asl.CompileFlags & NODE_IS_RESOURCE_DESC)
438 ForceNewScope = TRUE;
441 /* Get the data type associated with the named object, not the name itself */
443 /* Log2 loop to convert from Btype (binary) to Etype (encoded) */
446 for (i = 1; i < Arg->Asl.AcpiBtype; i *= 2)
453 case PARSEOP_EXTERNAL:
455 * "External" simply enters a name and type into the namespace.
456 * We must be careful to not open a new scope, however, no matter
457 * what type the external name refers to (e.g., a method)
459 * first child is name, next child is ObjectType
461 ActualObjectType = (UINT8) Op->Asl.Child->Asl.Next->Asl.Value.Integer;
462 ObjectType = ACPI_TYPE_ANY;
465 * We will mark every new node along the path as "External". This
466 * allows some or all of the nodes to be created later in the ASL
467 * code. Handles cases like this:
469 * External (\_SB_.PCI0.ABCD, IntObj)
478 * Store (\_SB_.PCI0.ABCD, Local0)
481 Flags |= ACPI_NS_EXTERNAL;
484 case PARSEOP_DEFAULT_ARG:
486 if (Op->Asl.CompileFlags == NODE_IS_RESOURCE_DESC)
488 Status = LdLoadResourceElements (Op, WalkState);
489 return_ACPI_STATUS (Status);
492 ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
497 * The name referenced by Scope(Name) must already exist at this point.
498 * In other words, forward references for Scope() are not supported.
499 * The only real reason for this is that the MS interpreter cannot
500 * handle this case. Perhaps someday this case can go away.
502 Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY,
503 ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT,
505 if (ACPI_FAILURE (Status))
507 if (Status == AE_NOT_FOUND)
509 /* The name was not found, go ahead and create it */
511 Status = AcpiNsLookup (WalkState->ScopeInfo, Path,
512 ACPI_TYPE_LOCAL_SCOPE,
513 ACPI_IMODE_LOAD_PASS1, Flags,
515 if (ACPI_FAILURE (Status))
517 return_ACPI_STATUS (Status);
521 * However, this is an error -- primarily because the MS
522 * interpreter can't handle a forward reference from the
525 AslError (ASL_ERROR, ASL_MSG_NOT_FOUND, Op,
526 Op->Asl.ExternalName);
527 AslError (ASL_ERROR, ASL_MSG_SCOPE_FWD_REF, Op,
528 Op->Asl.ExternalName);
532 AslCoreSubsystemError (Op, Status,
533 "Failure from namespace lookup", FALSE);
535 return_ACPI_STATUS (Status);
538 /* We found a node with this name, now check the type */
542 case ACPI_TYPE_LOCAL_SCOPE:
543 case ACPI_TYPE_DEVICE:
544 case ACPI_TYPE_POWER:
545 case ACPI_TYPE_PROCESSOR:
546 case ACPI_TYPE_THERMAL:
548 /* These are acceptable types - they all open a new scope */
551 case ACPI_TYPE_INTEGER:
552 case ACPI_TYPE_STRING:
553 case ACPI_TYPE_BUFFER:
555 * These types we will allow, but we will change the type.
556 * This enables some existing code of the form:
559 * Scope (DEB) { ... }
561 * Which is used to workaround the fact that the MS interpreter
562 * does not allow Scope() forward references.
564 sprintf (MsgBuffer, "%s [%s], changing type to [Scope]",
565 Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type));
566 AslError (ASL_REMARK, ASL_MSG_SCOPE_TYPE, Op, MsgBuffer);
568 /* Switch the type to scope, open the new scope */
570 Node->Type = ACPI_TYPE_LOCAL_SCOPE;
571 Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE,
573 if (ACPI_FAILURE (Status))
575 return_ACPI_STATUS (Status);
581 /* All other types are an error */
583 sprintf (MsgBuffer, "%s [%s]", Op->Asl.ExternalName,
584 AcpiUtGetTypeName (Node->Type));
585 AslError (ASL_ERROR, ASL_MSG_SCOPE_TYPE, Op, MsgBuffer);
588 * However, switch the type to be an actual scope so
589 * that compilation can continue without generating a whole
590 * cascade of additional errors. Open the new scope.
592 Node->Type = ACPI_TYPE_LOCAL_SCOPE;
593 Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE,
595 if (ACPI_FAILURE (Status))
597 return_ACPI_STATUS (Status);
608 ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
613 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Loading name: %s, (%s)\n",
614 Op->Asl.ExternalName, AcpiUtGetTypeName (ObjectType)));
616 /* The name must not already exist */
618 Flags |= ACPI_NS_ERROR_IF_FOUND;
621 * Enter the named type into the internal namespace. We enter the name
622 * as we go downward in the parse tree. Any necessary subobjects that
623 * involve arguments to the opcode must be created as we go back up the
626 Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType,
627 ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node);
628 if (ACPI_FAILURE (Status))
630 if (Status == AE_ALREADY_EXISTS)
632 /* The name already exists in this scope */
634 if (Node->Type == ACPI_TYPE_LOCAL_SCOPE)
636 /* Allow multiple references to the same scope */
638 Node->Type = (UINT8) ObjectType;
641 else if ((Node->Flags & ANOBJ_IS_EXTERNAL) &&
642 (Op->Asl.ParseOpcode != PARSEOP_EXTERNAL))
645 * Allow one create on an object or segment that was
646 * previously declared External
648 Node->Flags &= ~ANOBJ_IS_EXTERNAL;
649 Node->Type = (UINT8) ObjectType;
651 /* Just retyped a node, probably will need to open a scope */
653 if (AcpiNsOpensScope (ObjectType))
655 Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState);
656 if (ACPI_FAILURE (Status))
658 return_ACPI_STATUS (Status);
665 /* Valid error, object already exists */
667 AslError (ASL_ERROR, ASL_MSG_NAME_EXISTS, Op,
668 Op->Asl.ExternalName);
669 return_ACPI_STATUS (AE_OK);
674 AslCoreSubsystemError (Op, Status,
675 "Failure from namespace lookup", FALSE);
676 return_ACPI_STATUS (Status);
682 Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState);
683 if (ACPI_FAILURE (Status))
685 return_ACPI_STATUS (Status);
691 * Point the parse node to the new namespace node, and point
692 * the Node back to the original Parse node
697 /* Set the actual data type if appropriate (EXTERNAL term only) */
699 if (ActualObjectType != ACPI_TYPE_ANY)
701 Node->Type = (UINT8) ActualObjectType;
702 Node->Value = ASL_EXTERNAL_METHOD;
705 if (Op->Asl.ParseOpcode == PARSEOP_METHOD)
708 * Get the method argument count from "Extra" and save
709 * it in the namespace node
711 Node->Value = (UINT32) Op->Asl.Extra;
714 return_ACPI_STATUS (Status);
718 /*******************************************************************************
720 * FUNCTION: LdNamespace2Begin
722 * PARAMETERS: ASL_WALK_CALLBACK
726 * DESCRIPTION: Descending callback used during the pass 2 parse tree walk.
727 * Second pass resolves some forward references.
730 * Currently only needs to handle the Alias operator.
731 * Could be used to allow forward references from the Scope() operator, but
732 * the MS interpreter does not allow this, so this compiler does not either.
734 ******************************************************************************/
738 ACPI_PARSE_OBJECT *Op,
742 ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context;
744 ACPI_NAMESPACE_NODE *Node;
745 ACPI_OBJECT_TYPE ObjectType;
746 BOOLEAN ForceNewScope = FALSE;
747 ACPI_PARSE_OBJECT *Arg;
749 ACPI_NAMESPACE_NODE *TargetNode;
752 ACPI_FUNCTION_NAME (LdNamespace2Begin);
753 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op %p [%s]\n",
754 Op, Op->Asl.ParseOpName));
757 /* Ignore Ops with no namespace node */
765 /* Get the type to determine if we should push the scope */
767 if ((Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) &&
768 (Op->Asl.CompileFlags == NODE_IS_RESOURCE_DESC))
770 ObjectType = ACPI_TYPE_LOCAL_RESOURCE;
774 ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
777 /* Push scope for Resource Templates */
779 if (Op->Asl.ParseOpcode == PARSEOP_NAME)
781 if (Op->Asl.CompileFlags & NODE_IS_RESOURCE_DESC)
783 ForceNewScope = TRUE;
787 /* Push the scope stack */
789 if (ForceNewScope || AcpiNsOpensScope (ObjectType))
791 Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState);
792 if (ACPI_FAILURE (Status))
794 return_ACPI_STATUS (Status);
798 if (Op->Asl.ParseOpcode == PARSEOP_ALIAS)
800 /* Complete the alias node by getting and saving the target node */
802 /* First child is the alias target */
806 /* Get the target pathname */
808 Path = Arg->Asl.Namepath;
811 Status = UtInternalizeName (Arg->Asl.ExternalName, &Path);
812 if (ACPI_FAILURE (Status))
818 /* Get the NS node associated with the target. It must exist. */
820 Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY,
821 ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE,
822 WalkState, &TargetNode);
823 if (ACPI_FAILURE (Status))
825 if (Status == AE_NOT_FOUND)
827 AslError (ASL_ERROR, ASL_MSG_NOT_FOUND, Op,
828 Op->Asl.ExternalName);
831 * The name was not found, go ahead and create it.
832 * This prevents more errors later.
834 Status = AcpiNsLookup (WalkState->ScopeInfo, Path,
836 ACPI_IMODE_LOAD_PASS1, ACPI_NS_NO_UPSEARCH,
841 AslCoreSubsystemError (Op, Status,
842 "Failure from namespace lookup", FALSE);
846 /* Save the target node within the alias node */
848 Node->Object = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, TargetNode);
855 /*******************************************************************************
857 * FUNCTION: LdCommonNamespaceEnd
859 * PARAMETERS: ASL_WALK_CALLBACK
863 * DESCRIPTION: Ascending callback used during the loading of the namespace,
864 * We only need to worry about managing the scope stack here.
866 ******************************************************************************/
869 LdCommonNamespaceEnd (
870 ACPI_PARSE_OBJECT *Op,
874 ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context;
875 ACPI_OBJECT_TYPE ObjectType;
876 BOOLEAN ForceNewScope = FALSE;
879 ACPI_FUNCTION_NAME (LdCommonNamespaceEnd);
882 /* We are only interested in opcodes that have an associated name */
884 if (!Op->Asl.Namepath)
889 /* Get the type to determine if we should pop the scope */
891 if ((Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) &&
892 (Op->Asl.CompileFlags == NODE_IS_RESOURCE_DESC))
894 /* TBD: Merge into AcpiDsMapNamedOpcodeToDataType */
896 ObjectType = ACPI_TYPE_LOCAL_RESOURCE;
900 ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
903 /* Pop scope that was pushed for Resource Templates */
905 if (Op->Asl.ParseOpcode == PARSEOP_NAME)
907 if (Op->Asl.CompileFlags & NODE_IS_RESOURCE_DESC)
909 ForceNewScope = TRUE;
913 /* Pop the scope stack */
915 if (ForceNewScope || AcpiNsOpensScope (ObjectType))
917 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
918 "(%s): Popping scope for Op [%s] %p\n",
919 AcpiUtGetTypeName (ObjectType), Op->Asl.ParseOpName, Op));
921 (void) AcpiDsScopeStackPop (WalkState);