exstore.c revision 138287
1130803Smarcel
2130803Smarcel/******************************************************************************
3130803Smarcel *
4130803Smarcel * Module Name: exstore - AML Interpreter object store support
5130803Smarcel *              $Revision: 186 $
6130803Smarcel *
7130803Smarcel *****************************************************************************/
8130803Smarcel
9130803Smarcel/******************************************************************************
10130803Smarcel *
11130803Smarcel * 1. Copyright Notice
12130803Smarcel *
13130803Smarcel * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
14130803Smarcel * All rights reserved.
15130803Smarcel *
16130803Smarcel * 2. License
17130803Smarcel *
18130803Smarcel * 2.1. This is your license from Intel Corp. under its intellectual property
19130803Smarcel * rights.  You may have additional license terms from the party that provided
20130803Smarcel * you this software, covering your right to use that party's intellectual
21130803Smarcel * property rights.
22130803Smarcel *
23130803Smarcel * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
24130803Smarcel * copy of the source code appearing in this file ("Covered Code") an
25130803Smarcel * irrevocable, perpetual, worldwide license under Intel's copyrights in the
26130803Smarcel * base code distributed originally by Intel ("Original Intel Code") to copy,
27130803Smarcel * make derivatives, distribute, use and display any portion of the Covered
28130803Smarcel * Code in any form, with the right to sublicense such rights; and
29130803Smarcel *
30130803Smarcel * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
31130803Smarcel * license (with the right to sublicense), under only those claims of Intel
32130803Smarcel * patents that are infringed by the Original Intel Code, to make, use, sell,
33130803Smarcel * offer to sell, and import the Covered Code and derivative works thereof
34130803Smarcel * solely to the minimum extent necessary to exercise the above copyright
35130803Smarcel * license, and in no event shall the patent license extend to any additions
36130803Smarcel * to or modifications of the Original Intel Code.  No other license or right
37130803Smarcel * is granted directly or by implication, estoppel or otherwise;
38130803Smarcel *
39130803Smarcel * The above copyright and patent license is granted only if the following
40130803Smarcel * conditions are met:
41130803Smarcel *
42130803Smarcel * 3. Conditions
43130803Smarcel *
44130803Smarcel * 3.1. Redistribution of Source with Rights to Further Distribute Source.
45130803Smarcel * Redistribution of source code of any substantial portion of the Covered
46130803Smarcel * Code or modification with rights to further distribute source must include
47130803Smarcel * the above Copyright Notice, the above License, this list of Conditions,
48130803Smarcel * and the following Disclaimer and Export Compliance provision.  In addition,
49130803Smarcel * Licensee must cause all Covered Code to which Licensee contributes to
50130803Smarcel * contain a file documenting the changes Licensee made to create that Covered
51130803Smarcel * Code and the date of any change.  Licensee must include in that file the
52130803Smarcel * documentation of any changes made by any predecessor Licensee.  Licensee
53130803Smarcel * must include a prominent statement that the modification is derived,
54130803Smarcel * directly or indirectly, from Original Intel Code.
55130803Smarcel *
56130803Smarcel * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
57130803Smarcel * Redistribution of source code of any substantial portion of the Covered
58130803Smarcel * Code or modification without rights to further distribute source must
59130803Smarcel * include the following Disclaimer and Export Compliance provision in the
60130803Smarcel * documentation and/or other materials provided with distribution.  In
61 * addition, Licensee may not authorize further sublicense of source of any
62 * portion of the Covered Code, and must include terms to the effect that the
63 * license from Licensee to its licensee is limited to the intellectual
64 * property embodied in the software Licensee provides to its licensee, and
65 * not to intellectual property embodied in modifications its licensee may
66 * make.
67 *
68 * 3.3. Redistribution of Executable. Redistribution in executable form of any
69 * substantial portion of the Covered Code or modification must reproduce the
70 * above Copyright Notice, and the following Disclaimer and Export Compliance
71 * provision in the documentation and/or other materials provided with the
72 * distribution.
73 *
74 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * Intel Code.
76 *
77 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
78 * Intel shall be used in advertising or otherwise to promote the sale, use or
79 * other dealings in products derived from or relating to the Covered Code
80 * without prior written authorization from Intel.
81 *
82 * 4. Disclaimer and Export Compliance
83 *
84 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
85 * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
86 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
87 * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
88 * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
89 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * PARTICULAR PURPOSE.
91 *
92 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
93 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
94 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
95 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
96 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
97 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
98 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * LIMITED REMEDY.
100 *
101 * 4.3. Licensee shall not export, either directly or indirectly, any of this
102 * software or system incorporating such software without first obtaining any
103 * required license or other approval from the U. S. Department of Commerce or
104 * any other agency or department of the United States Government.  In the
105 * event Licensee exports any such software from the United States or
106 * re-exports any such software from a foreign destination, Licensee shall
107 * ensure that the distribution and export/re-export of the software is in
108 * compliance with all laws, regulations, orders, or other restrictions of the
109 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
110 * any of its subsidiaries will export/re-export any technical data, process,
111 * software, or service, directly or indirectly, to any country for which the
112 * United States government or any agency thereof requires an export license,
113 * other governmental approval, or letter of assurance, without first obtaining
114 * such license, approval or letter.
115 *
116 *****************************************************************************/
117
118#define __EXSTORE_C__
119
120#include "acpi.h"
121#include "acdispat.h"
122#include "acinterp.h"
123#include "amlcode.h"
124#include "acnamesp.h"
125
126
127#define _COMPONENT          ACPI_EXECUTER
128        ACPI_MODULE_NAME    ("exstore")
129
130
131/*******************************************************************************
132 *
133 * FUNCTION:    AcpiExStore
134 *
135 * PARAMETERS:  *SourceDesc         - Value to be stored
136 *              *DestDesc           - Where to store it.  Must be an NS node
137 *                                    or an ACPI_OPERAND_OBJECT of type
138 *                                    Reference;
139 *              WalkState           - Current walk state
140 *
141 * RETURN:      Status
142 *
143 * DESCRIPTION: Store the value described by SourceDesc into the location
144 *              described by DestDesc.  Called by various interpreter
145 *              functions to store the result of an operation into
146 *              the destination operand -- not just simply the actual "Store"
147 *              ASL operator.
148 *
149 ******************************************************************************/
150
151ACPI_STATUS
152AcpiExStore (
153    ACPI_OPERAND_OBJECT     *SourceDesc,
154    ACPI_OPERAND_OBJECT     *DestDesc,
155    ACPI_WALK_STATE         *WalkState)
156{
157    ACPI_STATUS             Status = AE_OK;
158    ACPI_OPERAND_OBJECT     *RefDesc = DestDesc;
159
160
161    ACPI_FUNCTION_TRACE_PTR ("ExStore", DestDesc);
162
163
164    /* Validate parameters */
165
166    if (!SourceDesc || !DestDesc)
167    {
168        ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Null parameter\n"));
169        return_ACPI_STATUS (AE_AML_NO_OPERAND);
170    }
171
172    /* DestDesc can be either a namespace node or an ACPI object */
173
174    if (ACPI_GET_DESCRIPTOR_TYPE (DestDesc) == ACPI_DESC_TYPE_NAMED)
175    {
176        /*
177         * Dest is a namespace node,
178         * Storing an object into a Named node.
179         */
180        Status = AcpiExStoreObjectToNode (SourceDesc,
181                    (ACPI_NAMESPACE_NODE *) DestDesc, WalkState,
182                    ACPI_IMPLICIT_CONVERSION);
183
184        return_ACPI_STATUS (Status);
185    }
186
187    /* Destination object must be a Reference or a Constant object */
188
189    switch (ACPI_GET_OBJECT_TYPE (DestDesc))
190    {
191    case ACPI_TYPE_LOCAL_REFERENCE:
192        break;
193
194    case ACPI_TYPE_INTEGER:
195
196        /* Allow stores to Constants -- a Noop as per ACPI spec */
197
198        if (DestDesc->Common.Flags & AOPOBJ_AML_CONSTANT)
199        {
200            return_ACPI_STATUS (AE_OK);
201        }
202
203        /*lint -fallthrough */
204
205    default:
206
207        /* Destination is not a Reference object */
208
209        ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
210            "Target is not a Reference or Constant object - %s [%p]\n",
211            AcpiUtGetObjectTypeName (DestDesc), DestDesc));
212
213        ACPI_DUMP_STACK_ENTRY (SourceDesc);
214        ACPI_DUMP_STACK_ENTRY (DestDesc);
215        ACPI_DUMP_OPERANDS (&DestDesc, ACPI_IMODE_EXECUTE, "ExStore",
216                        2, "Target is not a Reference or Constant object");
217
218        return_ACPI_STATUS (AE_AML_OPERAND_TYPE);
219    }
220
221    /*
222     * Examine the Reference opcode.  These cases are handled:
223     *
224     * 1) Store to Name (Change the object associated with a name)
225     * 2) Store to an indexed area of a Buffer or Package
226     * 3) Store to a Method Local or Arg
227     * 4) Store to the debug object
228     */
229    switch (RefDesc->Reference.Opcode)
230    {
231    case AML_NAME_OP:
232    case AML_REF_OF_OP:
233
234        /* Storing an object into a Name "container" */
235
236        Status = AcpiExStoreObjectToNode (SourceDesc, RefDesc->Reference.Object,
237                        WalkState, ACPI_IMPLICIT_CONVERSION);
238        break;
239
240
241    case AML_INDEX_OP:
242
243        /* Storing to an Index (pointer into a packager or buffer) */
244
245        Status = AcpiExStoreObjectToIndex (SourceDesc, RefDesc, WalkState);
246        break;
247
248
249    case AML_LOCAL_OP:
250    case AML_ARG_OP:
251
252        /* Store to a method local/arg  */
253
254        Status = AcpiDsStoreObjectToLocal (RefDesc->Reference.Opcode,
255                        RefDesc->Reference.Offset, SourceDesc, WalkState);
256        break;
257
258
259    case AML_DEBUG_OP:
260
261        /*
262         * Storing to the Debug object causes the value stored to be
263         * displayed and otherwise has no effect -- see ACPI Specification
264         */
265        ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
266            "**** Write to Debug Object: Object %p %s ****:\n\n",
267            SourceDesc, AcpiUtGetObjectTypeName (SourceDesc)));
268
269        ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT, "[ACPI Debug] %s: ",
270            AcpiUtGetObjectTypeName (SourceDesc)));
271
272        if (!AcpiUtValidInternalObject (SourceDesc))
273        {
274           ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT,
275               "%p, Invalid Internal Object!\n", SourceDesc));
276           break;
277        }
278
279        switch (ACPI_GET_OBJECT_TYPE (SourceDesc))
280        {
281        case ACPI_TYPE_INTEGER:
282
283            if (AcpiGbl_IntegerByteWidth == 4)
284            {
285                ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT, "0x%8.8X\n",
286                    (UINT32) SourceDesc->Integer.Value));
287            }
288            else
289            {
290                ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT, "0x%8.8X%8.8X\n",
291                    ACPI_FORMAT_UINT64 (SourceDesc->Integer.Value)));
292            }
293            break;
294
295
296        case ACPI_TYPE_BUFFER:
297
298            ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT, "[0x%.2X]",
299                (UINT32) SourceDesc->Buffer.Length));
300            ACPI_DUMP_BUFFER (SourceDesc->Buffer.Pointer,
301                (SourceDesc->Buffer.Length < 32) ? SourceDesc->Buffer.Length : 32);
302            break;
303
304
305        case ACPI_TYPE_STRING:
306
307            ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT, "[0x%.2X] \"%s\"\n",
308                SourceDesc->String.Length, SourceDesc->String.Pointer));
309            break;
310
311
312        case ACPI_TYPE_PACKAGE:
313
314            ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT, "[0x%.2X] Elements Ptr - %p\n",
315                SourceDesc->Package.Count, SourceDesc->Package.Elements));
316            break;
317
318
319        default:
320
321            ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DEBUG_OBJECT, "%p\n",
322                SourceDesc));
323            break;
324        }
325
326        ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, "\n"));
327        break;
328
329
330    default:
331
332        ACPI_REPORT_ERROR (("ExStore: Unknown Reference opcode %X\n",
333            RefDesc->Reference.Opcode));
334        ACPI_DUMP_ENTRY (RefDesc, ACPI_LV_ERROR);
335
336        Status = AE_AML_INTERNAL;
337        break;
338    }
339
340    return_ACPI_STATUS (Status);
341}
342
343
344/*******************************************************************************
345 *
346 * FUNCTION:    AcpiExStoreObjectToIndex
347 *
348 * PARAMETERS:  *SourceDesc             - Value to be stored
349 *              *DestDesc               - Named object to receive the value
350 *              WalkState               - Current walk state
351 *
352 * RETURN:      Status
353 *
354 * DESCRIPTION: Store the object to indexed Buffer or Package element
355 *
356 ******************************************************************************/
357
358ACPI_STATUS
359AcpiExStoreObjectToIndex (
360    ACPI_OPERAND_OBJECT     *SourceDesc,
361    ACPI_OPERAND_OBJECT     *IndexDesc,
362    ACPI_WALK_STATE         *WalkState)
363{
364    ACPI_STATUS             Status = AE_OK;
365    ACPI_OPERAND_OBJECT     *ObjDesc;
366    ACPI_OPERAND_OBJECT     *NewDesc;
367    UINT8                   Value = 0;
368    UINT32                  i;
369
370
371    ACPI_FUNCTION_TRACE ("ExStoreObjectToIndex");
372
373
374    /*
375     * Destination must be a reference pointer, and
376     * must point to either a buffer or a package
377     */
378    switch (IndexDesc->Reference.TargetType)
379    {
380    case ACPI_TYPE_PACKAGE:
381        /*
382         * Storing to a package element. Copy the object and replace
383         * any existing object with the new object. No implicit
384         * conversion is performed.
385         *
386         * The object at *(IndexDesc->Reference.Where) is the
387         * element within the package that is to be modified.
388         * The parent package object is at IndexDesc->Reference.Object
389         */
390        ObjDesc = *(IndexDesc->Reference.Where);
391
392        Status = AcpiUtCopyIobjectToIobject (SourceDesc, &NewDesc, WalkState);
393        if (ACPI_FAILURE (Status))
394        {
395            return_ACPI_STATUS (Status);
396        }
397
398        if (ObjDesc)
399        {
400            /* Decrement reference count by the ref count of the parent package */
401
402            for (i = 0; i < ((ACPI_OPERAND_OBJECT *) IndexDesc->Reference.Object)->Common.ReferenceCount; i++)
403            {
404                AcpiUtRemoveReference (ObjDesc);
405            }
406        }
407
408        *(IndexDesc->Reference.Where) = NewDesc;
409
410        /* Increment reference count by the ref count of the parent package -1 */
411
412        for (i = 1; i < ((ACPI_OPERAND_OBJECT *) IndexDesc->Reference.Object)->Common.ReferenceCount; i++)
413        {
414            AcpiUtAddReference (NewDesc);
415        }
416
417        break;
418
419
420    case ACPI_TYPE_BUFFER_FIELD:
421
422        /*
423         * Store into a Buffer or String (not actually a real BufferField)
424         * at a location defined by an Index.
425         *
426         * The first 8-bit element of the source object is written to the
427         * 8-bit Buffer location defined by the Index destination object,
428         * according to the ACPI 2.0 specification.
429         */
430
431        /*
432         * Make sure the target is a Buffer or String. An error should
433         * not happen here, since the ReferenceObject was constructed
434         * by the INDEX_OP code.
435         */
436        ObjDesc = IndexDesc->Reference.Object;
437        if ((ACPI_GET_OBJECT_TYPE (ObjDesc) != ACPI_TYPE_BUFFER) &&
438            (ACPI_GET_OBJECT_TYPE (ObjDesc) != ACPI_TYPE_STRING))
439        {
440            return_ACPI_STATUS (AE_AML_OPERAND_TYPE);
441        }
442
443        /*
444         * The assignment of the individual elements will be slightly
445         * different for each source type.
446         */
447        switch (ACPI_GET_OBJECT_TYPE (SourceDesc))
448        {
449        case ACPI_TYPE_INTEGER:
450
451            /* Use the least-significant byte of the integer */
452
453            Value = (UINT8) (SourceDesc->Integer.Value);
454            break;
455
456        case ACPI_TYPE_BUFFER:
457        case ACPI_TYPE_STRING:
458
459            /* Note: Takes advantage of common string/buffer fields */
460
461            Value = SourceDesc->Buffer.Pointer[0];
462            break;
463
464        default:
465
466            /* All other types are invalid */
467
468            ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
469                "Source must be Integer/Buffer/String type, not %s\n",
470                AcpiUtGetObjectTypeName (SourceDesc)));
471            return_ACPI_STATUS (AE_AML_OPERAND_TYPE);
472        }
473
474        /* Store the source value into the target buffer byte */
475
476        ObjDesc->Buffer.Pointer[IndexDesc->Reference.Offset] = Value;
477        break;
478
479
480    default:
481        ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
482            "Target is not a Package or BufferField\n"));
483        Status = AE_AML_OPERAND_TYPE;
484        break;
485    }
486
487    return_ACPI_STATUS (Status);
488}
489
490
491/*******************************************************************************
492 *
493 * FUNCTION:    AcpiExStoreObjectToNode
494 *
495 * PARAMETERS:  SourceDesc              - Value to be stored
496 *              Node                    - Named object to receive the value
497 *              WalkState               - Current walk state
498 *              ImplicitConversion      - Perform implicit conversion (yes/no)
499 *
500 * RETURN:      Status
501 *
502 * DESCRIPTION: Store the object to the named object.
503 *
504 *              The Assignment of an object to a named object is handled here
505 *              The value passed in will replace the current value (if any)
506 *              with the input value.
507 *
508 *              When storing into an object the data is converted to the
509 *              target object type then stored in the object.  This means
510 *              that the target object type (for an initialized target) will
511 *              not be changed by a store operation.
512 *
513 *              Assumes parameters are already validated.
514 *
515 ******************************************************************************/
516
517ACPI_STATUS
518AcpiExStoreObjectToNode (
519    ACPI_OPERAND_OBJECT     *SourceDesc,
520    ACPI_NAMESPACE_NODE     *Node,
521    ACPI_WALK_STATE         *WalkState,
522    UINT8                   ImplicitConversion)
523{
524    ACPI_STATUS             Status = AE_OK;
525    ACPI_OPERAND_OBJECT     *TargetDesc;
526    ACPI_OPERAND_OBJECT     *NewDesc;
527    ACPI_OBJECT_TYPE        TargetType;
528
529
530    ACPI_FUNCTION_TRACE_PTR ("ExStoreObjectToNode", SourceDesc);
531
532
533    /*
534     * Get current type of the node, and object attached to Node
535     */
536    TargetType = AcpiNsGetType (Node);
537    TargetDesc = AcpiNsGetAttachedObject (Node);
538
539    ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Storing %p(%s) into node %p(%s)\n",
540        SourceDesc, AcpiUtGetObjectTypeName (SourceDesc),
541              Node, AcpiUtGetTypeName (TargetType)));
542
543    /*
544     * Resolve the source object to an actual value
545     * (If it is a reference object)
546     */
547    Status = AcpiExResolveObject (&SourceDesc, TargetType, WalkState);
548    if (ACPI_FAILURE (Status))
549    {
550        return_ACPI_STATUS (Status);
551    }
552
553    /* If no implicit conversion, drop into the default case below */
554
555    if (!ImplicitConversion)
556    {
557        /* Force execution of default (no implicit conversion) */
558
559        TargetType = ACPI_TYPE_ANY;
560    }
561
562    /*
563     * Do the actual store operation
564     */
565    switch (TargetType)
566    {
567    case ACPI_TYPE_BUFFER_FIELD:
568    case ACPI_TYPE_LOCAL_REGION_FIELD:
569    case ACPI_TYPE_LOCAL_BANK_FIELD:
570    case ACPI_TYPE_LOCAL_INDEX_FIELD:
571
572        /*
573         * For fields, copy the source data to the target field.
574         */
575        Status = AcpiExWriteDataToField (SourceDesc, TargetDesc, &WalkState->ResultObj);
576        break;
577
578
579    case ACPI_TYPE_INTEGER:
580    case ACPI_TYPE_STRING:
581    case ACPI_TYPE_BUFFER:
582
583        /*
584         * These target types are all of type Integer/String/Buffer, and
585         * therefore support implicit conversion before the store.
586         *
587         * Copy and/or convert the source object to a new target object
588         */
589        Status = AcpiExStoreObjectToObject (SourceDesc, TargetDesc, &NewDesc, WalkState);
590        if (ACPI_FAILURE (Status))
591        {
592            return_ACPI_STATUS (Status);
593        }
594
595        if (NewDesc != TargetDesc)
596        {
597            /*
598             * Store the new NewDesc as the new value of the Name, and set
599             * the Name's type to that of the value being stored in it.
600             * SourceDesc reference count is incremented by AttachObject.
601             *
602             * Note: This may change the type of the node if an explicit store
603             * has been performed such that the node/object type has been
604             * changed.
605             */
606            Status = AcpiNsAttachObject (Node, NewDesc, NewDesc->Common.Type);
607
608            ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
609                "Store %s into %s via Convert/Attach\n",
610                AcpiUtGetObjectTypeName (SourceDesc),
611                AcpiUtGetObjectTypeName (NewDesc)));
612        }
613        break;
614
615
616    default:
617
618        ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
619            "Storing %s (%p) directly into node (%p), no implicit conversion\n",
620            AcpiUtGetObjectTypeName (SourceDesc), SourceDesc, Node));
621
622        /* No conversions for all other types.  Just attach the source object */
623
624        Status = AcpiNsAttachObject (Node, SourceDesc, ACPI_GET_OBJECT_TYPE (SourceDesc));
625        break;
626    }
627
628    return_ACPI_STATUS (Status);
629}
630
631
632