1 /*******************************************************************************
3 * Module Name: dsmthdat - control method arguments and local variables
6 ******************************************************************************/
8 /******************************************************************************
12 * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
13 * All rights reserved.
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights. You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
22 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23 * copy of the source code appearing in this file ("Covered Code") an
24 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25 * base code distributed originally by Intel ("Original Intel Code") to copy,
26 * make derivatives, distribute, use and display any portion of the Covered
27 * Code in any form, with the right to sublicense such rights; and
29 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30 * license (with the right to sublicense), under only those claims of Intel
31 * patents that are infringed by the Original Intel Code, to make, use, sell,
32 * offer to sell, and import the Covered Code and derivative works thereof
33 * solely to the minimum extent necessary to exercise the above copyright
34 * license, and in no event shall the patent license extend to any additions
35 * to or modifications of the Original Intel Code. No other license or right
36 * is granted directly or by implication, estoppel or otherwise;
38 * The above copyright and patent license is granted only if the following
43 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44 * Redistribution of source code of any substantial portion of the Covered
45 * Code or modification with rights to further distribute source must include
46 * the above Copyright Notice, the above License, this list of Conditions,
47 * and the following Disclaimer and Export Compliance provision. In addition,
48 * Licensee must cause all Covered Code to which Licensee contributes to
49 * contain a file documenting the changes Licensee made to create that Covered
50 * Code and the date of any change. Licensee must include in that file the
51 * documentation of any changes made by any predecessor Licensee. Licensee
52 * must include a prominent statement that the modification is derived,
53 * directly or indirectly, from Original Intel Code.
55 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56 * Redistribution of source code of any substantial portion of the Covered
57 * Code or modification without rights to further distribute source must
58 * include the following Disclaimer and Export Compliance provision in the
59 * documentation and/or other materials provided with distribution. In
60 * addition, Licensee may not authorize further sublicense of source of any
61 * portion of the Covered Code, and must include terms to the effect that the
62 * license from Licensee to its licensee is limited to the intellectual
63 * property embodied in the software Licensee provides to its licensee, and
64 * not to intellectual property embodied in modifications its licensee may
67 * 3.3. Redistribution of Executable. Redistribution in executable form of any
68 * substantial portion of the Covered Code or modification must reproduce the
69 * above Copyright Notice, and the following Disclaimer and Export Compliance
70 * provision in the documentation and/or other materials provided with the
73 * 3.4. Intel retains all right, title, and interest in and to the Original
76 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77 * Intel shall be used in advertising or otherwise to promote the sale, use or
78 * other dealings in products derived from or relating to the Covered Code
79 * without prior written authorization from Intel.
81 * 4. Disclaimer and Export Compliance
83 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
86 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
87 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
88 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
91 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
97 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
100 * 4.3. Licensee shall not export, either directly or indirectly, any of this
101 * software or system incorporating such software without first obtaining any
102 * required license or other approval from the U. S. Department of Commerce or
103 * any other agency or department of the United States Government. In the
104 * event Licensee exports any such software from the United States or
105 * re-exports any such software from a foreign destination, Licensee shall
106 * ensure that the distribution and export/re-export of the software is in
107 * compliance with all laws, regulations, orders, or other restrictions of the
108 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109 * any of its subsidiaries will export/re-export any technical data, process,
110 * software, or service, directly or indirectly, to any country for which the
111 * United States government or any agency thereof requires an export license,
112 * other governmental approval, or letter of assurance, without first obtaining
113 * such license, approval or letter.
115 *****************************************************************************/
117 #define __DSMTHDAT_C__
120 #include "acdispat.h"
122 #include "acnamesp.h"
123 #include "acinterp.h"
126 #define _COMPONENT ACPI_DISPATCHER
127 ACPI_MODULE_NAME ("dsmthdat")
130 /*******************************************************************************
132 * FUNCTION: AcpiDsMethodDataInit
134 * PARAMETERS: WalkState - Current walk state object
138 * DESCRIPTION: Initialize the data structures that hold the method's arguments
139 * and locals. The data struct is an array of NTEs for each.
140 * This allows RefOf and DeRefOf to work properly for these
141 * special data types.
143 * NOTES: WalkState fields are initialized to zero by the
144 * ACPI_MEM_CALLOCATE().
146 * A pseudo-Namespace Node is assigned to each argument and local
147 * so that RefOf() can return a pointer to the Node.
149 ******************************************************************************/
152 AcpiDsMethodDataInit (
153 ACPI_WALK_STATE *WalkState)
158 ACPI_FUNCTION_TRACE ("DsMethodDataInit");
161 /* Init the method arguments */
163 for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++)
165 ACPI_MOVE_32_TO_32 (&WalkState->Arguments[i].Name,
167 WalkState->Arguments[i].Name.Integer |= (i << 24);
168 WalkState->Arguments[i].Descriptor = ACPI_DESC_TYPE_NAMED;
169 WalkState->Arguments[i].Type = ACPI_TYPE_ANY;
170 WalkState->Arguments[i].Flags = ANOBJ_END_OF_PEER_LIST | ANOBJ_METHOD_ARG;
173 /* Init the method locals */
175 for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++)
177 ACPI_MOVE_32_TO_32 (&WalkState->LocalVariables[i].Name,
180 WalkState->LocalVariables[i].Name.Integer |= (i << 24);
181 WalkState->LocalVariables[i].Descriptor = ACPI_DESC_TYPE_NAMED;
182 WalkState->LocalVariables[i].Type = ACPI_TYPE_ANY;
183 WalkState->LocalVariables[i].Flags = ANOBJ_END_OF_PEER_LIST | ANOBJ_METHOD_LOCAL;
190 /*******************************************************************************
192 * FUNCTION: AcpiDsMethodDataDeleteAll
194 * PARAMETERS: WalkState - Current walk state object
198 * DESCRIPTION: Delete method locals and arguments. Arguments are only
199 * deleted if this method was called from another method.
201 ******************************************************************************/
204 AcpiDsMethodDataDeleteAll (
205 ACPI_WALK_STATE *WalkState)
210 ACPI_FUNCTION_TRACE ("DsMethodDataDeleteAll");
213 /* Detach the locals */
215 for (Index = 0; Index < ACPI_METHOD_NUM_LOCALS; Index++)
217 if (WalkState->LocalVariables[Index].Object)
219 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Local%d=%p\n",
220 Index, WalkState->LocalVariables[Index].Object));
222 /* Detach object (if present) and remove a reference */
224 AcpiNsDetachObject (&WalkState->LocalVariables[Index]);
228 /* Detach the arguments */
230 for (Index = 0; Index < ACPI_METHOD_NUM_ARGS; Index++)
232 if (WalkState->Arguments[Index].Object)
234 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Arg%d=%p\n",
235 Index, WalkState->Arguments[Index].Object));
237 /* Detach object (if present) and remove a reference */
239 AcpiNsDetachObject (&WalkState->Arguments[Index]);
247 /*******************************************************************************
249 * FUNCTION: AcpiDsMethodDataInitArgs
251 * PARAMETERS: *Params - Pointer to a parameter list for the method
252 * MaxParamCount - The arg count for this method
253 * WalkState - Current walk state object
257 * DESCRIPTION: Initialize arguments for a method. The parameter list is a list
258 * of ACPI operand objects, either null terminated or whose length
259 * is defined by MaxParamCount.
261 ******************************************************************************/
264 AcpiDsMethodDataInitArgs (
265 ACPI_OPERAND_OBJECT **Params,
266 UINT32 MaxParamCount,
267 ACPI_WALK_STATE *WalkState)
273 ACPI_FUNCTION_TRACE_PTR ("DsMethodDataInitArgs", Params);
278 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "No param list passed to method\n"));
279 return_ACPI_STATUS (AE_OK);
282 /* Copy passed parameters into the new method stack frame */
284 while ((Index < ACPI_METHOD_NUM_ARGS) && (Index < MaxParamCount) && Params[Index])
288 * Store the argument in the method/walk descriptor.
289 * Do not copy the arg in order to implement call by reference
291 Status = AcpiDsMethodDataSetValue (AML_ARG_OP, Index, Params[Index], WalkState);
292 if (ACPI_FAILURE (Status))
294 return_ACPI_STATUS (Status);
300 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%d args passed to method\n", Index));
301 return_ACPI_STATUS (AE_OK);
305 /*******************************************************************************
307 * FUNCTION: AcpiDsMethodDataGetNode
309 * PARAMETERS: Opcode - Either AML_LOCAL_OP or AML_ARG_OP
310 * Index - Which localVar or argument whose type
312 * WalkState - Current walk state object
314 * RETURN: Get the Node associated with a local or arg.
316 ******************************************************************************/
319 AcpiDsMethodDataGetNode (
322 ACPI_WALK_STATE *WalkState,
323 ACPI_NAMESPACE_NODE **Node)
325 ACPI_FUNCTION_TRACE ("DsMethodDataGetNode");
329 * Method Locals and Arguments are supported
335 if (Index > ACPI_METHOD_MAX_LOCAL)
337 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Local index %d is invalid (max %d)\n",
338 Index, ACPI_METHOD_MAX_LOCAL));
339 return_ACPI_STATUS (AE_AML_INVALID_INDEX);
342 /* Return a pointer to the pseudo-node */
344 *Node = &WalkState->LocalVariables[Index];
349 if (Index > ACPI_METHOD_MAX_ARG)
351 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Arg index %d is invalid (max %d)\n",
352 Index, ACPI_METHOD_MAX_ARG));
353 return_ACPI_STATUS (AE_AML_INVALID_INDEX);
356 /* Return a pointer to the pseudo-node */
358 *Node = &WalkState->Arguments[Index];
362 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Opcode %d is invalid\n", Opcode));
363 return_ACPI_STATUS (AE_AML_BAD_OPCODE);
366 return_ACPI_STATUS (AE_OK);
370 /*******************************************************************************
372 * FUNCTION: AcpiDsMethodDataSetValue
374 * PARAMETERS: Opcode - Either AML_LOCAL_OP or AML_ARG_OP
375 * Index - Which localVar or argument to get
376 * Object - Object to be inserted into the stack entry
377 * WalkState - Current walk state object
381 * DESCRIPTION: Insert an object onto the method stack at entry Opcode:Index.
382 * Note: There is no "implicit conversion" for locals.
384 ******************************************************************************/
387 AcpiDsMethodDataSetValue (
390 ACPI_OPERAND_OBJECT *Object,
391 ACPI_WALK_STATE *WalkState)
394 ACPI_NAMESPACE_NODE *Node;
397 ACPI_FUNCTION_TRACE ("DsMethodDataSetValue");
400 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
401 "NewObj %p Opcode %X, Refs=%d [%s]\n", Object,
402 Opcode, Object->Common.ReferenceCount,
403 AcpiUtGetTypeName (Object->Common.Type)));
405 /* Get the namespace node for the arg/local */
407 Status = AcpiDsMethodDataGetNode (Opcode, Index, WalkState, &Node);
408 if (ACPI_FAILURE (Status))
410 return_ACPI_STATUS (Status);
414 * Increment ref count so object can't be deleted while installed.
415 * NOTE: We do not copy the object in order to preserve the call by
416 * reference semantics of ACPI Control Method invocation.
417 * (See ACPI Specification 2.0C)
419 AcpiUtAddReference (Object);
421 /* Install the object */
423 Node->Object = Object;
424 return_ACPI_STATUS (Status);
428 /*******************************************************************************
430 * FUNCTION: AcpiDsMethodDataGetType
432 * PARAMETERS: Opcode - Either AML_LOCAL_OP or AML_ARG_OP
433 * Index - Which localVar or argument whose type
435 * WalkState - Current walk state object
437 * RETURN: Data type of current value of the selected Arg or Local
439 ******************************************************************************/
442 AcpiDsMethodDataGetType (
445 ACPI_WALK_STATE *WalkState)
448 ACPI_NAMESPACE_NODE *Node;
449 ACPI_OPERAND_OBJECT *Object;
452 ACPI_FUNCTION_TRACE ("DsMethodDataGetType");
455 /* Get the namespace node for the arg/local */
457 Status = AcpiDsMethodDataGetNode (Opcode, Index, WalkState, &Node);
458 if (ACPI_FAILURE (Status))
460 return_VALUE ((ACPI_TYPE_NOT_FOUND));
465 Object = AcpiNsGetAttachedObject (Node);
468 /* Uninitialized local/arg, return TYPE_ANY */
470 return_VALUE (ACPI_TYPE_ANY);
473 /* Get the object type */
475 return_VALUE (ACPI_GET_OBJECT_TYPE (Object));
479 /*******************************************************************************
481 * FUNCTION: AcpiDsMethodDataGetValue
483 * PARAMETERS: Opcode - Either AML_LOCAL_OP or AML_ARG_OP
484 * Index - Which localVar or argument to get
485 * WalkState - Current walk state object
486 * *DestDesc - Ptr to Descriptor into which selected Arg
487 * or Local value should be copied
491 * DESCRIPTION: Retrieve value of selected Arg or Local from the method frame
492 * at the current top of the method stack.
493 * Used only in AcpiExResolveToValue().
495 ******************************************************************************/
498 AcpiDsMethodDataGetValue (
501 ACPI_WALK_STATE *WalkState,
502 ACPI_OPERAND_OBJECT **DestDesc)
505 ACPI_NAMESPACE_NODE *Node;
506 ACPI_OPERAND_OBJECT *Object;
509 ACPI_FUNCTION_TRACE ("DsMethodDataGetValue");
512 /* Validate the object descriptor */
516 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Null object descriptor pointer\n"));
517 return_ACPI_STATUS (AE_BAD_PARAMETER);
520 /* Get the namespace node for the arg/local */
522 Status = AcpiDsMethodDataGetNode (Opcode, Index, WalkState, &Node);
523 if (ACPI_FAILURE (Status))
525 return_ACPI_STATUS (Status);
528 /* Get the object from the node */
530 Object = Node->Object;
532 /* Examine the returned object, it must be valid. */
537 * Index points to uninitialized object.
538 * This means that either 1) The expected argument was
539 * not passed to the method, or 2) A local variable
540 * was referenced by the method (via the ASL)
541 * before it was initialized. Either case is an error.
544 /* If slack enabled, init the LocalX/ArgX to an Integer of value zero */
546 if (AcpiGbl_EnableInterpreterSlack)
548 Object = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER);
551 return_ACPI_STATUS (AE_NO_MEMORY);
554 Object->Integer.Value = 0;
555 Node->Object = Object;
558 /* Otherwise, return the error */
564 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Uninitialized Arg[%d] at node %p\n",
567 return_ACPI_STATUS (AE_AML_UNINITIALIZED_ARG);
571 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Uninitialized Local[%d] at node %p\n",
574 return_ACPI_STATUS (AE_AML_UNINITIALIZED_LOCAL);
577 ACPI_REPORT_ERROR (("Not Arg/Local opcode: %X\n", Opcode));
578 return_ACPI_STATUS (AE_AML_INTERNAL);
583 * The Index points to an initialized and valid object.
584 * Return an additional reference to the object
587 AcpiUtAddReference (Object);
589 return_ACPI_STATUS (AE_OK);
593 /*******************************************************************************
595 * FUNCTION: AcpiDsMethodDataDeleteValue
597 * PARAMETERS: Opcode - Either AML_LOCAL_OP or AML_ARG_OP
598 * Index - Which localVar or argument to delete
599 * WalkState - Current walk state object
603 * DESCRIPTION: Delete the entry at Opcode:Index on the method stack. Inserts
604 * a null into the stack slot after the object is deleted.
606 ******************************************************************************/
609 AcpiDsMethodDataDeleteValue (
612 ACPI_WALK_STATE *WalkState)
615 ACPI_NAMESPACE_NODE *Node;
616 ACPI_OPERAND_OBJECT *Object;
619 ACPI_FUNCTION_TRACE ("DsMethodDataDeleteValue");
622 /* Get the namespace node for the arg/local */
624 Status = AcpiDsMethodDataGetNode (Opcode, Index, WalkState, &Node);
625 if (ACPI_FAILURE (Status))
630 /* Get the associated object */
632 Object = AcpiNsGetAttachedObject (Node);
635 * Undefine the Arg or Local by setting its descriptor
636 * pointer to NULL. Locals/Args can contain both
637 * ACPI_OPERAND_OBJECTS and ACPI_NAMESPACE_NODEs
642 (ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_OPERAND))
645 * There is a valid object.
646 * Decrement the reference count by one to balance the
647 * increment when the object was stored.
649 AcpiUtRemoveReference (Object);
656 /*******************************************************************************
658 * FUNCTION: AcpiDsStoreObjectToLocal
660 * PARAMETERS: Opcode - Either AML_LOCAL_OP or AML_ARG_OP
661 * Index - Which localVar or argument to set
662 * ObjDesc - Value to be stored
663 * WalkState - Current walk state
667 * DESCRIPTION: Store a value in an Arg or Local. The ObjDesc is installed
668 * as the new value for the Arg or Local and the reference count
669 * for ObjDesc is incremented.
671 ******************************************************************************/
674 AcpiDsStoreObjectToLocal (
677 ACPI_OPERAND_OBJECT *ObjDesc,
678 ACPI_WALK_STATE *WalkState)
681 ACPI_NAMESPACE_NODE *Node;
682 ACPI_OPERAND_OBJECT *CurrentObjDesc;
683 ACPI_OPERAND_OBJECT *NewObjDesc;
686 ACPI_FUNCTION_TRACE ("DsStoreObjectToLocal");
687 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Opcode=%X Index=%d Obj=%p\n",
688 Opcode, Index, ObjDesc));
690 /* Parameter validation */
694 return_ACPI_STATUS (AE_BAD_PARAMETER);
697 /* Get the namespace node for the arg/local */
699 Status = AcpiDsMethodDataGetNode (Opcode, Index, WalkState, &Node);
700 if (ACPI_FAILURE (Status))
702 return_ACPI_STATUS (Status);
705 CurrentObjDesc = AcpiNsGetAttachedObject (Node);
706 if (CurrentObjDesc == ObjDesc)
708 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Obj=%p already installed!\n",
710 return_ACPI_STATUS (Status);
714 * If the reference count on the object is more than one, we must
715 * take a copy of the object before we store. A reference count
716 * of exactly 1 means that the object was just created during the
717 * evaluation of an expression, and we can safely use it since it
718 * is not used anywhere else.
720 NewObjDesc = ObjDesc;
721 if (ObjDesc->Common.ReferenceCount > 1)
723 Status = AcpiUtCopyIobjectToIobject (ObjDesc, &NewObjDesc, WalkState);
724 if (ACPI_FAILURE (Status))
726 return_ACPI_STATUS (Status);
731 * If there is an object already in this slot, we either
732 * have to delete it, or if this is an argument and there
733 * is an object reference stored there, we have to do
739 * Check for an indirect store if an argument
740 * contains an object reference (stored as an Node).
741 * We don't allow this automatic dereferencing for
742 * locals, since a store to a local should overwrite
743 * anything there, including an object reference.
745 * If both Arg0 and Local0 contain RefOf (Local4):
747 * Store (1, Arg0) - Causes indirect store to local4
748 * Store (1, Local0) - Stores 1 in local0, overwriting
749 * the reference to local4
750 * Store (1, DeRefof (Local0)) - Causes indirect store to local4
754 if (Opcode == AML_ARG_OP)
757 * Make sure that the object is the correct type. This may be overkill, but
758 * it is here because references were NS nodes in the past. Now they are
759 * operand objects of type Reference.
761 if (ACPI_GET_DESCRIPTOR_TYPE (CurrentObjDesc) != ACPI_DESC_TYPE_OPERAND)
763 ACPI_REPORT_ERROR (("Invalid descriptor type while storing to method arg: [%s]\n",
764 AcpiUtGetDescriptorName (CurrentObjDesc)));
765 return_ACPI_STATUS (AE_AML_INTERNAL);
769 * If we have a valid reference object that came from RefOf(), do the
772 if ((CurrentObjDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) &&
773 (CurrentObjDesc->Reference.Opcode == AML_REF_OF_OP))
775 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
776 "Arg (%p) is an ObjRef(Node), storing in node %p\n",
777 NewObjDesc, CurrentObjDesc));
780 * Store this object to the Node (perform the indirect store)
781 * NOTE: No implicit conversion is performed, as per the ACPI
782 * specification rules on storing to Locals/Args.
784 Status = AcpiExStoreObjectToNode (NewObjDesc,
785 CurrentObjDesc->Reference.Object, WalkState,
786 ACPI_NO_IMPLICIT_CONVERSION);
788 /* Remove local reference if we copied the object above */
790 if (NewObjDesc != ObjDesc)
792 AcpiUtRemoveReference (NewObjDesc);
794 return_ACPI_STATUS (Status);
799 * Delete the existing object
800 * before storing the new one
802 AcpiDsMethodDataDeleteValue (Opcode, Index, WalkState);
806 * Install the Obj descriptor (*NewObjDesc) into
807 * the descriptor for the Arg or Local.
808 * (increments the object reference count by one)
810 Status = AcpiDsMethodDataSetValue (Opcode, Index, NewObjDesc, WalkState);
812 /* Remove local reference if we copied the object above */
814 if (NewObjDesc != ObjDesc)
816 AcpiUtRemoveReference (NewObjDesc);
819 return_ACPI_STATUS (Status);