Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / drivers / bus / acpi / acpica / dispatcher / dswload2.c
1 /******************************************************************************
2 *
3 * Module Name: dswload2 - Dispatcher second pass namespace load callbacks
4 *
5 *****************************************************************************/
6
7 /*
8 * Copyright (C) 2000 - 2017, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
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.
25 *
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.
29 *
30 * NO WARRANTY
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.
42 */
43
44 #include "acpi.h"
45 #include "accommon.h"
46 #include "acparser.h"
47 #include "amlcode.h"
48 #include "acdispat.h"
49 #include "acinterp.h"
50 #include "acnamesp.h"
51 #include "acevents.h"
52
53 #define _COMPONENT ACPI_DISPATCHER
54 ACPI_MODULE_NAME ("dswload2")
55
56
57 /*******************************************************************************
58 *
59 * FUNCTION: AcpiDsLoad2BeginOp
60 *
61 * PARAMETERS: WalkState - Current state of the parse tree walk
62 * OutOp - Wher to return op if a new one is created
63 *
64 * RETURN: Status
65 *
66 * DESCRIPTION: Descending callback used during the loading of ACPI tables.
67 *
68 ******************************************************************************/
69
70 ACPI_STATUS
71 AcpiDsLoad2BeginOp (
72 ACPI_WALK_STATE *WalkState,
73 ACPI_PARSE_OBJECT **OutOp)
74 {
75 ACPI_PARSE_OBJECT *Op;
76 ACPI_NAMESPACE_NODE *Node;
77 ACPI_STATUS Status;
78 ACPI_OBJECT_TYPE ObjectType;
79 char *BufferPtr;
80 UINT32 Flags;
81
82
83 ACPI_FUNCTION_TRACE (DsLoad2BeginOp);
84
85
86 Op = WalkState->Op;
87 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op=%p State=%p\n", Op, WalkState));
88
89 if (Op)
90 {
91 if ((WalkState->ControlState) &&
92 (WalkState->ControlState->Common.State ==
93 ACPI_CONTROL_CONDITIONAL_EXECUTING))
94 {
95 /* We are executing a while loop outside of a method */
96
97 Status = AcpiDsExecBeginOp (WalkState, OutOp);
98 return_ACPI_STATUS (Status);
99 }
100
101 /* We only care about Namespace opcodes here */
102
103 if ((!(WalkState->OpInfo->Flags & AML_NSOPCODE) &&
104 (WalkState->Opcode != AML_INT_NAMEPATH_OP)) ||
105 (!(WalkState->OpInfo->Flags & AML_NAMED)))
106 {
107 return_ACPI_STATUS (AE_OK);
108 }
109
110 /* Get the name we are going to enter or lookup in the namespace */
111
112 if (WalkState->Opcode == AML_INT_NAMEPATH_OP)
113 {
114 /* For Namepath op, get the path string */
115
116 BufferPtr = Op->Common.Value.String;
117 if (!BufferPtr)
118 {
119 /* No name, just exit */
120
121 return_ACPI_STATUS (AE_OK);
122 }
123 }
124 else
125 {
126 /* Get name from the op */
127
128 BufferPtr = ACPI_CAST_PTR (char, &Op->Named.Name);
129 }
130 }
131 else
132 {
133 /* Get the namestring from the raw AML */
134
135 BufferPtr = AcpiPsGetNextNamestring (&WalkState->ParserState);
136 }
137
138 /* Map the opcode into an internal object type */
139
140 ObjectType = WalkState->OpInfo->ObjectType;
141
142 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
143 "State=%p Op=%p Type=%X\n", WalkState, Op, ObjectType));
144
145 switch (WalkState->Opcode)
146 {
147 case AML_FIELD_OP:
148 case AML_BANK_FIELD_OP:
149 case AML_INDEX_FIELD_OP:
150
151 Node = NULL;
152 Status = AE_OK;
153 break;
154
155 case AML_INT_NAMEPATH_OP:
156 /*
157 * The NamePath is an object reference to an existing object.
158 * Don't enter the name into the namespace, but look it up
159 * for use later.
160 */
161 Status = AcpiNsLookup (WalkState->ScopeInfo, BufferPtr, ObjectType,
162 ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT,
163 WalkState, &(Node));
164 break;
165
166 case AML_SCOPE_OP:
167
168 /* Special case for Scope(\) -> refers to the Root node */
169
170 if (Op && (Op->Named.Node == AcpiGbl_RootNode))
171 {
172 Node = Op->Named.Node;
173
174 Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState);
175 if (ACPI_FAILURE (Status))
176 {
177 return_ACPI_STATUS (Status);
178 }
179 }
180 else
181 {
182 /*
183 * The Path is an object reference to an existing object.
184 * Don't enter the name into the namespace, but look it up
185 * for use later.
186 */
187 Status = AcpiNsLookup (WalkState->ScopeInfo, BufferPtr, ObjectType,
188 ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT,
189 WalkState, &(Node));
190 if (ACPI_FAILURE (Status))
191 {
192 #ifdef ACPI_ASL_COMPILER
193 if (Status == AE_NOT_FOUND)
194 {
195 Status = AE_OK;
196 }
197 else
198 {
199 ACPI_ERROR_NAMESPACE (BufferPtr, Status);
200 }
201 #else
202 ACPI_ERROR_NAMESPACE (BufferPtr, Status);
203 #endif
204 return_ACPI_STATUS (Status);
205 }
206 }
207
208 /*
209 * We must check to make sure that the target is
210 * one of the opcodes that actually opens a scope
211 */
212 switch (Node->Type)
213 {
214 case ACPI_TYPE_ANY:
215 case ACPI_TYPE_LOCAL_SCOPE: /* Scope */
216 case ACPI_TYPE_DEVICE:
217 case ACPI_TYPE_POWER:
218 case ACPI_TYPE_PROCESSOR:
219 case ACPI_TYPE_THERMAL:
220
221 /* These are acceptable types */
222 break;
223
224 case ACPI_TYPE_INTEGER:
225 case ACPI_TYPE_STRING:
226 case ACPI_TYPE_BUFFER:
227
228 /*
229 * These types we will allow, but we will change the type.
230 * This enables some existing code of the form:
231 *
232 * Name (DEB, 0)
233 * Scope (DEB) { ... }
234 */
235 ACPI_WARNING ((AE_INFO,
236 "Type override - [%4.4s] had invalid type (%s) "
237 "for Scope operator, changed to type ANY",
238 AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Node->Type)));
239
240 Node->Type = ACPI_TYPE_ANY;
241 WalkState->ScopeInfo->Common.Value = ACPI_TYPE_ANY;
242 break;
243
244 case ACPI_TYPE_METHOD:
245
246 /*
247 * Allow scope change to root during execution of module-level
248 * code. Root is typed METHOD during this time.
249 */
250 if ((Node == AcpiGbl_RootNode) &&
251 (WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL))
252 {
253 break;
254 }
255
256 /*lint -fallthrough */
257
258 default:
259
260 /* All other types are an error */
261
262 ACPI_ERROR ((AE_INFO,
263 "Invalid type (%s) for target of "
264 "Scope operator [%4.4s] (Cannot override)",
265 AcpiUtGetTypeName (Node->Type), AcpiUtGetNodeName (Node)));
266
267 return_ACPI_STATUS (AE_AML_OPERAND_TYPE);
268 }
269 break;
270
271 default:
272
273 /* All other opcodes */
274
275 if (Op && Op->Common.Node)
276 {
277 /* This op/node was previously entered into the namespace */
278
279 Node = Op->Common.Node;
280
281 if (AcpiNsOpensScope (ObjectType))
282 {
283 Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState);
284 if (ACPI_FAILURE (Status))
285 {
286 return_ACPI_STATUS (Status);
287 }
288 }
289
290 return_ACPI_STATUS (AE_OK);
291 }
292
293 /*
294 * Enter the named type into the internal namespace. We enter the name
295 * as we go downward in the parse tree. Any necessary subobjects that
296 * involve arguments to the opcode must be created as we go back up the
297 * parse tree later.
298 *
299 * Note: Name may already exist if we are executing a deferred opcode.
300 */
301 if (WalkState->DeferredNode)
302 {
303 /* This name is already in the namespace, get the node */
304
305 Node = WalkState->DeferredNode;
306 Status = AE_OK;
307 break;
308 }
309
310 Flags = ACPI_NS_NO_UPSEARCH;
311 if (WalkState->PassNumber == ACPI_IMODE_EXECUTE)
312 {
313 /* Execution mode, node cannot already exist, node is temporary */
314
315 Flags |= ACPI_NS_ERROR_IF_FOUND;
316
317 if (!(WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL))
318 {
319 Flags |= ACPI_NS_TEMPORARY;
320 }
321 }
322
323 #ifdef ACPI_ASL_COMPILER
324
325 /*
326 * Do not open a scope for AML_EXTERNAL_OP
327 * AcpiNsLookup can open a new scope based on the object type
328 * of this op. AML_EXTERNAL_OP is a declaration rather than a
329 * definition. In the case that this external is a method object,
330 * AcpiNsLookup will open a new scope. However, an AML_EXTERNAL_OP
331 * associated with the ACPI_TYPE_METHOD is a declaration, rather than
332 * a definition. Flags is set to avoid opening a scope for any
333 * AML_EXTERNAL_OP.
334 */
335 if (WalkState->Opcode == AML_EXTERNAL_OP)
336 {
337 Flags |= ACPI_NS_DONT_OPEN_SCOPE;
338 }
339 #endif
340
341 /* Add new entry or lookup existing entry */
342
343 Status = AcpiNsLookup (WalkState->ScopeInfo, BufferPtr, ObjectType,
344 ACPI_IMODE_LOAD_PASS2, Flags, WalkState, &Node);
345
346 if (ACPI_SUCCESS (Status) && (Flags & ACPI_NS_TEMPORARY))
347 {
348 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
349 "***New Node [%4.4s] %p is temporary\n",
350 AcpiUtGetNodeName (Node), Node));
351 }
352 break;
353 }
354
355 if (ACPI_FAILURE (Status))
356 {
357 ACPI_ERROR_NAMESPACE (BufferPtr, Status);
358 return_ACPI_STATUS (Status);
359 }
360
361 if (!Op)
362 {
363 /* Create a new op */
364
365 Op = AcpiPsAllocOp (WalkState->Opcode, WalkState->Aml);
366 if (!Op)
367 {
368 return_ACPI_STATUS (AE_NO_MEMORY);
369 }
370
371 /* Initialize the new op */
372
373 if (Node)
374 {
375 Op->Named.Name = Node->Name.Integer;
376 }
377 *OutOp = Op;
378 }
379
380 /*
381 * Put the Node in the "op" object that the parser uses, so we
382 * can get it again quickly when this scope is closed
383 */
384 Op->Common.Node = Node;
385 return_ACPI_STATUS (Status);
386 }
387
388
389 /*******************************************************************************
390 *
391 * FUNCTION: AcpiDsLoad2EndOp
392 *
393 * PARAMETERS: WalkState - Current state of the parse tree walk
394 *
395 * RETURN: Status
396 *
397 * DESCRIPTION: Ascending callback used during the loading of the namespace,
398 * both control methods and everything else.
399 *
400 ******************************************************************************/
401
402 ACPI_STATUS
403 AcpiDsLoad2EndOp (
404 ACPI_WALK_STATE *WalkState)
405 {
406 ACPI_PARSE_OBJECT *Op;
407 ACPI_STATUS Status = AE_OK;
408 ACPI_OBJECT_TYPE ObjectType;
409 ACPI_NAMESPACE_NODE *Node;
410 ACPI_PARSE_OBJECT *Arg;
411 ACPI_NAMESPACE_NODE *NewNode;
412 #ifndef ACPI_NO_METHOD_EXECUTION
413 UINT32 i;
414 UINT8 RegionSpace;
415 #endif
416
417
418 ACPI_FUNCTION_TRACE (DsLoad2EndOp);
419
420 Op = WalkState->Op;
421 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Opcode [%s] Op %p State %p\n",
422 WalkState->OpInfo->Name, Op, WalkState));
423
424 /* Check if opcode had an associated namespace object */
425
426 if (!(WalkState->OpInfo->Flags & AML_NSOBJECT))
427 {
428 return_ACPI_STATUS (AE_OK);
429 }
430
431 if (Op->Common.AmlOpcode == AML_SCOPE_OP)
432 {
433 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
434 "Ending scope Op=%p State=%p\n", Op, WalkState));
435 }
436
437 ObjectType = WalkState->OpInfo->ObjectType;
438
439 /*
440 * Get the Node/name from the earlier lookup
441 * (It was saved in the *op structure)
442 */
443 Node = Op->Common.Node;
444
445 /*
446 * Put the Node on the object stack (Contains the ACPI Name of
447 * this object)
448 */
449 WalkState->Operands[0] = (void *) Node;
450 WalkState->NumOperands = 1;
451
452 /* Pop the scope stack */
453
454 if (AcpiNsOpensScope (ObjectType) &&
455 (Op->Common.AmlOpcode != AML_INT_METHODCALL_OP))
456 {
457 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "(%s) Popping scope for Op %p\n",
458 AcpiUtGetTypeName (ObjectType), Op));
459
460 Status = AcpiDsScopeStackPop (WalkState);
461 if (ACPI_FAILURE (Status))
462 {
463 goto Cleanup;
464 }
465 }
466
467 /*
468 * Named operations are as follows:
469 *
470 * AML_ALIAS
471 * AML_BANKFIELD
472 * AML_CREATEBITFIELD
473 * AML_CREATEBYTEFIELD
474 * AML_CREATEDWORDFIELD
475 * AML_CREATEFIELD
476 * AML_CREATEQWORDFIELD
477 * AML_CREATEWORDFIELD
478 * AML_DATA_REGION
479 * AML_DEVICE
480 * AML_EVENT
481 * AML_FIELD
482 * AML_INDEXFIELD
483 * AML_METHOD
484 * AML_METHODCALL
485 * AML_MUTEX
486 * AML_NAME
487 * AML_NAMEDFIELD
488 * AML_OPREGION
489 * AML_POWERRES
490 * AML_PROCESSOR
491 * AML_SCOPE
492 * AML_THERMALZONE
493 */
494
495 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
496 "Create-Load [%s] State=%p Op=%p NamedObj=%p\n",
497 AcpiPsGetOpcodeName (Op->Common.AmlOpcode), WalkState, Op, Node));
498
499 /* Decode the opcode */
500
501 Arg = Op->Common.Value.Arg;
502
503 switch (WalkState->OpInfo->Type)
504 {
505 #ifndef ACPI_NO_METHOD_EXECUTION
506
507 case AML_TYPE_CREATE_FIELD:
508 /*
509 * Create the field object, but the field buffer and index must
510 * be evaluated later during the execution phase
511 */
512 Status = AcpiDsCreateBufferField (Op, WalkState);
513 break;
514
515 case AML_TYPE_NAMED_FIELD:
516 /*
517 * If we are executing a method, initialize the field
518 */
519 if (WalkState->MethodNode)
520 {
521 Status = AcpiDsInitFieldObjects (Op, WalkState);
522 }
523
524 switch (Op->Common.AmlOpcode)
525 {
526 case AML_INDEX_FIELD_OP:
527
528 Status = AcpiDsCreateIndexField (
529 Op, (ACPI_HANDLE) Arg->Common.Node, WalkState);
530 break;
531
532 case AML_BANK_FIELD_OP:
533
534 Status = AcpiDsCreateBankField (Op, Arg->Common.Node, WalkState);
535 break;
536
537 case AML_FIELD_OP:
538
539 Status = AcpiDsCreateField (Op, Arg->Common.Node, WalkState);
540 break;
541
542 default:
543
544 /* All NAMED_FIELD opcodes must be handled above */
545 break;
546 }
547 break;
548
549 case AML_TYPE_NAMED_SIMPLE:
550
551 Status = AcpiDsCreateOperands (WalkState, Arg);
552 if (ACPI_FAILURE (Status))
553 {
554 goto Cleanup;
555 }
556
557 switch (Op->Common.AmlOpcode)
558 {
559 case AML_PROCESSOR_OP:
560
561 Status = AcpiExCreateProcessor (WalkState);
562 break;
563
564 case AML_POWER_RESOURCE_OP:
565
566 Status = AcpiExCreatePowerResource (WalkState);
567 break;
568
569 case AML_MUTEX_OP:
570
571 Status = AcpiExCreateMutex (WalkState);
572 break;
573
574 case AML_EVENT_OP:
575
576 Status = AcpiExCreateEvent (WalkState);
577 break;
578
579 case AML_ALIAS_OP:
580
581 Status = AcpiExCreateAlias (WalkState);
582 break;
583
584 default:
585
586 /* Unknown opcode */
587
588 Status = AE_OK;
589 goto Cleanup;
590 }
591
592 /* Delete operands */
593
594 for (i = 1; i < WalkState->NumOperands; i++)
595 {
596 AcpiUtRemoveReference (WalkState->Operands[i]);
597 WalkState->Operands[i] = NULL;
598 }
599
600 break;
601 #endif /* ACPI_NO_METHOD_EXECUTION */
602
603 case AML_TYPE_NAMED_COMPLEX:
604
605 switch (Op->Common.AmlOpcode)
606 {
607 #ifndef ACPI_NO_METHOD_EXECUTION
608 case AML_REGION_OP:
609 case AML_DATA_REGION_OP:
610
611 if (Op->Common.AmlOpcode == AML_REGION_OP)
612 {
613 RegionSpace = (ACPI_ADR_SPACE_TYPE)
614 ((Op->Common.Value.Arg)->Common.Value.Integer);
615 }
616 else
617 {
618 RegionSpace = ACPI_ADR_SPACE_DATA_TABLE;
619 }
620
621 /*
622 * The OpRegion is not fully parsed at this time. The only valid
623 * argument is the SpaceId. (We must save the address of the
624 * AML of the address and length operands)
625 *
626 * If we have a valid region, initialize it. The namespace is
627 * unlocked at this point.
628 *
629 * Need to unlock interpreter if it is locked (if we are running
630 * a control method), in order to allow _REG methods to be run
631 * during AcpiEvInitializeRegion.
632 */
633 if (WalkState->MethodNode)
634 {
635 /*
636 * Executing a method: initialize the region and unlock
637 * the interpreter
638 */
639 Status = AcpiExCreateRegion (Op->Named.Data,
640 Op->Named.Length, RegionSpace, WalkState);
641 if (ACPI_FAILURE (Status))
642 {
643 return_ACPI_STATUS (Status);
644 }
645 }
646
647 Status = AcpiEvInitializeRegion (
648 AcpiNsGetAttachedObject (Node));
649 break;
650
651 case AML_NAME_OP:
652
653 Status = AcpiDsCreateNode (WalkState, Node, Op);
654 break;
655
656 case AML_METHOD_OP:
657 /*
658 * MethodOp PkgLength NameString MethodFlags TermList
659 *
660 * Note: We must create the method node/object pair as soon as we
661 * see the method declaration. This allows later pass1 parsing
662 * of invocations of the method (need to know the number of
663 * arguments.)
664 */
665 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
666 "LOADING-Method: State=%p Op=%p NamedObj=%p\n",
667 WalkState, Op, Op->Named.Node));
668
669 if (!AcpiNsGetAttachedObject (Op->Named.Node))
670 {
671 WalkState->Operands[0] = ACPI_CAST_PTR (void, Op->Named.Node);
672 WalkState->NumOperands = 1;
673
674 Status = AcpiDsCreateOperands (
675 WalkState, Op->Common.Value.Arg);
676 if (ACPI_SUCCESS (Status))
677 {
678 Status = AcpiExCreateMethod (
679 Op->Named.Data, Op->Named.Length, WalkState);
680 }
681
682 WalkState->Operands[0] = NULL;
683 WalkState->NumOperands = 0;
684
685 if (ACPI_FAILURE (Status))
686 {
687 return_ACPI_STATUS (Status);
688 }
689 }
690 break;
691
692 #endif /* ACPI_NO_METHOD_EXECUTION */
693
694 default:
695
696 /* All NAMED_COMPLEX opcodes must be handled above */
697 break;
698 }
699 break;
700
701 case AML_CLASS_INTERNAL:
702
703 /* case AML_INT_NAMEPATH_OP: */
704 break;
705
706 case AML_CLASS_METHOD_CALL:
707
708 ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
709 "RESOLVING-MethodCall: State=%p Op=%p NamedObj=%p\n",
710 WalkState, Op, Node));
711
712 /*
713 * Lookup the method name and save the Node
714 */
715 Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.String,
716 ACPI_TYPE_ANY, ACPI_IMODE_LOAD_PASS2,
717 ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE,
718 WalkState, &(NewNode));
719 if (ACPI_SUCCESS (Status))
720 {
721 /*
722 * Make sure that what we found is indeed a method
723 * We didn't search for a method on purpose, to see if the name
724 * would resolve
725 */
726 if (NewNode->Type != ACPI_TYPE_METHOD)
727 {
728 Status = AE_AML_OPERAND_TYPE;
729 }
730
731 /* We could put the returned object (Node) on the object stack for
732 * later, but for now, we will put it in the "op" object that the
733 * parser uses, so we can get it again at the end of this scope
734 */
735 Op->Common.Node = NewNode;
736 }
737 else
738 {
739 ACPI_ERROR_NAMESPACE (Arg->Common.Value.String, Status);
740 }
741 break;
742
743
744 default:
745
746 break;
747 }
748
749 Cleanup:
750
751 /* Remove the Node pushed at the very beginning */
752
753 WalkState->Operands[0] = NULL;
754 WalkState->NumOperands = 0;
755 return_ACPI_STATUS (Status);
756 }