1 /******************************************************************************
3 * Module Name: exmisc - ACPI AML (p-code) execution - specific opcodes
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2014, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * 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 *****************************************************************************/
120 #include "accommon.h"
121 #include "acinterp.h"
123 #include "amlresrc.h"
126 #define _COMPONENT ACPI_EXECUTER
127 ACPI_MODULE_NAME ("exmisc")
130 /*******************************************************************************
132 * FUNCTION: AcpiExGetObjectReference
134 * PARAMETERS: ObjDesc - Create a reference to this object
135 * ReturnDesc - Where to store the reference
136 * WalkState - Current state
140 * DESCRIPTION: Obtain and return a "reference" to the target object
141 * Common code for the RefOfOp and the CondRefOfOp.
143 ******************************************************************************/
146 AcpiExGetObjectReference (
147 ACPI_OPERAND_OBJECT
*ObjDesc
,
148 ACPI_OPERAND_OBJECT
**ReturnDesc
,
149 ACPI_WALK_STATE
*WalkState
)
151 ACPI_OPERAND_OBJECT
*ReferenceObj
;
152 ACPI_OPERAND_OBJECT
*ReferencedObj
;
155 ACPI_FUNCTION_TRACE_PTR (ExGetObjectReference
, ObjDesc
);
160 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc
))
162 case ACPI_DESC_TYPE_OPERAND
:
164 if (ObjDesc
->Common
.Type
!= ACPI_TYPE_LOCAL_REFERENCE
)
166 return_ACPI_STATUS (AE_AML_OPERAND_TYPE
);
170 * Must be a reference to a Local or Arg
172 switch (ObjDesc
->Reference
.Class
)
174 case ACPI_REFCLASS_LOCAL
:
175 case ACPI_REFCLASS_ARG
:
176 case ACPI_REFCLASS_DEBUG
:
178 /* The referenced object is the pseudo-node for the local/arg */
180 ReferencedObj
= ObjDesc
->Reference
.Object
;
185 ACPI_ERROR ((AE_INFO
, "Unknown Reference Class 0x%2.2X",
186 ObjDesc
->Reference
.Class
));
187 return_ACPI_STATUS (AE_AML_INTERNAL
);
191 case ACPI_DESC_TYPE_NAMED
:
193 * A named reference that has already been resolved to a Node
195 ReferencedObj
= ObjDesc
;
200 ACPI_ERROR ((AE_INFO
, "Invalid descriptor type 0x%X",
201 ACPI_GET_DESCRIPTOR_TYPE (ObjDesc
)));
202 return_ACPI_STATUS (AE_TYPE
);
206 /* Create a new reference object */
208 ReferenceObj
= AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_REFERENCE
);
211 return_ACPI_STATUS (AE_NO_MEMORY
);
214 ReferenceObj
->Reference
.Class
= ACPI_REFCLASS_REFOF
;
215 ReferenceObj
->Reference
.Object
= ReferencedObj
;
216 *ReturnDesc
= ReferenceObj
;
218 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC
,
219 "Object %p Type [%s], returning Reference %p\n",
220 ObjDesc
, AcpiUtGetObjectTypeName (ObjDesc
), *ReturnDesc
));
222 return_ACPI_STATUS (AE_OK
);
226 /*******************************************************************************
228 * FUNCTION: AcpiExConcatTemplate
230 * PARAMETERS: Operand0 - First source object
231 * Operand1 - Second source object
232 * ActualReturnDesc - Where to place the return object
233 * WalkState - Current walk state
237 * DESCRIPTION: Concatenate two resource templates
239 ******************************************************************************/
242 AcpiExConcatTemplate (
243 ACPI_OPERAND_OBJECT
*Operand0
,
244 ACPI_OPERAND_OBJECT
*Operand1
,
245 ACPI_OPERAND_OBJECT
**ActualReturnDesc
,
246 ACPI_WALK_STATE
*WalkState
)
249 ACPI_OPERAND_OBJECT
*ReturnDesc
;
257 ACPI_FUNCTION_TRACE (ExConcatTemplate
);
261 * Find the EndTag descriptor in each resource template.
262 * Note1: returned pointers point TO the EndTag, not past it.
263 * Note2: zero-length buffers are allowed; treated like one EndTag
266 /* Get the length of the first resource template */
268 Status
= AcpiUtGetResourceEndTag (Operand0
, &EndTag
);
269 if (ACPI_FAILURE (Status
))
271 return_ACPI_STATUS (Status
);
274 Length0
= ACPI_PTR_DIFF (EndTag
, Operand0
->Buffer
.Pointer
);
276 /* Get the length of the second resource template */
278 Status
= AcpiUtGetResourceEndTag (Operand1
, &EndTag
);
279 if (ACPI_FAILURE (Status
))
281 return_ACPI_STATUS (Status
);
284 Length1
= ACPI_PTR_DIFF (EndTag
, Operand1
->Buffer
.Pointer
);
286 /* Combine both lengths, minimum size will be 2 for EndTag */
288 NewLength
= Length0
+ Length1
+ sizeof (AML_RESOURCE_END_TAG
);
290 /* Create a new buffer object for the result (with one EndTag) */
292 ReturnDesc
= AcpiUtCreateBufferObject (NewLength
);
295 return_ACPI_STATUS (AE_NO_MEMORY
);
299 * Copy the templates to the new buffer, 0 first, then 1 follows. One
300 * EndTag descriptor is copied from Operand1.
302 NewBuf
= ReturnDesc
->Buffer
.Pointer
;
303 ACPI_MEMCPY (NewBuf
, Operand0
->Buffer
.Pointer
, Length0
);
304 ACPI_MEMCPY (NewBuf
+ Length0
, Operand1
->Buffer
.Pointer
, Length1
);
306 /* Insert EndTag and set the checksum to zero, means "ignore checksum" */
308 NewBuf
[NewLength
- 1] = 0;
309 NewBuf
[NewLength
- 2] = ACPI_RESOURCE_NAME_END_TAG
| 1;
311 /* Return the completed resource template */
313 *ActualReturnDesc
= ReturnDesc
;
314 return_ACPI_STATUS (AE_OK
);
318 /*******************************************************************************
320 * FUNCTION: AcpiExDoConcatenate
322 * PARAMETERS: Operand0 - First source object
323 * Operand1 - Second source object
324 * ActualReturnDesc - Where to place the return object
325 * WalkState - Current walk state
329 * DESCRIPTION: Concatenate two objects OF THE SAME TYPE.
331 ******************************************************************************/
334 AcpiExDoConcatenate (
335 ACPI_OPERAND_OBJECT
*Operand0
,
336 ACPI_OPERAND_OBJECT
*Operand1
,
337 ACPI_OPERAND_OBJECT
**ActualReturnDesc
,
338 ACPI_WALK_STATE
*WalkState
)
340 ACPI_OPERAND_OBJECT
*LocalOperand1
= Operand1
;
341 ACPI_OPERAND_OBJECT
*ReturnDesc
;
346 ACPI_FUNCTION_TRACE (ExDoConcatenate
);
350 * Convert the second operand if necessary. The first operand
351 * determines the type of the second operand, (See the Data Types
352 * section of the ACPI specification.) Both object types are
353 * guaranteed to be either Integer/String/Buffer by the operand
354 * resolution mechanism.
356 switch (Operand0
->Common
.Type
)
358 case ACPI_TYPE_INTEGER
:
360 Status
= AcpiExConvertToInteger (Operand1
, &LocalOperand1
, 16);
363 case ACPI_TYPE_STRING
:
365 Status
= AcpiExConvertToString (Operand1
, &LocalOperand1
,
366 ACPI_IMPLICIT_CONVERT_HEX
);
369 case ACPI_TYPE_BUFFER
:
371 Status
= AcpiExConvertToBuffer (Operand1
, &LocalOperand1
);
376 ACPI_ERROR ((AE_INFO
, "Invalid object type: 0x%X",
377 Operand0
->Common
.Type
));
378 Status
= AE_AML_INTERNAL
;
381 if (ACPI_FAILURE (Status
))
387 * Both operands are now known to be the same object type
388 * (Both are Integer, String, or Buffer), and we can now perform the
393 * There are three cases to handle:
395 * 1) Two Integers concatenated to produce a new Buffer
396 * 2) Two Strings concatenated to produce a new String
397 * 3) Two Buffers concatenated to produce a new Buffer
399 switch (Operand0
->Common
.Type
)
401 case ACPI_TYPE_INTEGER
:
403 /* Result of two Integers is a Buffer */
404 /* Need enough buffer space for two integers */
406 ReturnDesc
= AcpiUtCreateBufferObject ((ACPI_SIZE
)
407 ACPI_MUL_2 (AcpiGbl_IntegerByteWidth
));
410 Status
= AE_NO_MEMORY
;
414 NewBuf
= (char *) ReturnDesc
->Buffer
.Pointer
;
416 /* Copy the first integer, LSB first */
418 ACPI_MEMCPY (NewBuf
, &Operand0
->Integer
.Value
,
419 AcpiGbl_IntegerByteWidth
);
421 /* Copy the second integer (LSB first) after the first */
423 ACPI_MEMCPY (NewBuf
+ AcpiGbl_IntegerByteWidth
,
424 &LocalOperand1
->Integer
.Value
,
425 AcpiGbl_IntegerByteWidth
);
428 case ACPI_TYPE_STRING
:
430 /* Result of two Strings is a String */
432 ReturnDesc
= AcpiUtCreateStringObject (
433 ((ACPI_SIZE
) Operand0
->String
.Length
+
434 LocalOperand1
->String
.Length
));
437 Status
= AE_NO_MEMORY
;
441 NewBuf
= ReturnDesc
->String
.Pointer
;
443 /* Concatenate the strings */
445 ACPI_STRCPY (NewBuf
, Operand0
->String
.Pointer
);
446 ACPI_STRCPY (NewBuf
+ Operand0
->String
.Length
,
447 LocalOperand1
->String
.Pointer
);
450 case ACPI_TYPE_BUFFER
:
452 /* Result of two Buffers is a Buffer */
454 ReturnDesc
= AcpiUtCreateBufferObject (
455 ((ACPI_SIZE
) Operand0
->Buffer
.Length
+
456 LocalOperand1
->Buffer
.Length
));
459 Status
= AE_NO_MEMORY
;
463 NewBuf
= (char *) ReturnDesc
->Buffer
.Pointer
;
465 /* Concatenate the buffers */
467 ACPI_MEMCPY (NewBuf
, Operand0
->Buffer
.Pointer
,
468 Operand0
->Buffer
.Length
);
469 ACPI_MEMCPY (NewBuf
+ Operand0
->Buffer
.Length
,
470 LocalOperand1
->Buffer
.Pointer
,
471 LocalOperand1
->Buffer
.Length
);
476 /* Invalid object type, should not happen here */
478 ACPI_ERROR ((AE_INFO
, "Invalid object type: 0x%X",
479 Operand0
->Common
.Type
));
480 Status
=AE_AML_INTERNAL
;
484 *ActualReturnDesc
= ReturnDesc
;
487 if (LocalOperand1
!= Operand1
)
489 AcpiUtRemoveReference (LocalOperand1
);
491 return_ACPI_STATUS (Status
);
495 /*******************************************************************************
497 * FUNCTION: AcpiExDoMathOp
499 * PARAMETERS: Opcode - AML opcode
500 * Integer0 - Integer operand #0
501 * Integer1 - Integer operand #1
503 * RETURN: Integer result of the operation
505 * DESCRIPTION: Execute a math AML opcode. The purpose of having all of the
506 * math functions here is to prevent a lot of pointer dereferencing
507 * to obtain the operands.
509 ******************************************************************************/
518 ACPI_FUNCTION_ENTRY ();
523 case AML_ADD_OP
: /* Add (Integer0, Integer1, Result) */
525 return (Integer0
+ Integer1
);
527 case AML_BIT_AND_OP
: /* And (Integer0, Integer1, Result) */
529 return (Integer0
& Integer1
);
531 case AML_BIT_NAND_OP
: /* NAnd (Integer0, Integer1, Result) */
533 return (~(Integer0
& Integer1
));
535 case AML_BIT_OR_OP
: /* Or (Integer0, Integer1, Result) */
537 return (Integer0
| Integer1
);
539 case AML_BIT_NOR_OP
: /* NOr (Integer0, Integer1, Result) */
541 return (~(Integer0
| Integer1
));
543 case AML_BIT_XOR_OP
: /* XOr (Integer0, Integer1, Result) */
545 return (Integer0
^ Integer1
);
547 case AML_MULTIPLY_OP
: /* Multiply (Integer0, Integer1, Result) */
549 return (Integer0
* Integer1
);
551 case AML_SHIFT_LEFT_OP
: /* ShiftLeft (Operand, ShiftCount, Result)*/
554 * We need to check if the shiftcount is larger than the integer bit
555 * width since the behavior of this is not well-defined in the C language.
557 if (Integer1
>= AcpiGbl_IntegerBitWidth
)
561 return (Integer0
<< Integer1
);
563 case AML_SHIFT_RIGHT_OP
: /* ShiftRight (Operand, ShiftCount, Result) */
566 * We need to check if the shiftcount is larger than the integer bit
567 * width since the behavior of this is not well-defined in the C language.
569 if (Integer1
>= AcpiGbl_IntegerBitWidth
)
573 return (Integer0
>> Integer1
);
575 case AML_SUBTRACT_OP
: /* Subtract (Integer0, Integer1, Result) */
577 return (Integer0
- Integer1
);
586 /*******************************************************************************
588 * FUNCTION: AcpiExDoLogicalNumericOp
590 * PARAMETERS: Opcode - AML opcode
591 * Integer0 - Integer operand #0
592 * Integer1 - Integer operand #1
593 * LogicalResult - TRUE/FALSE result of the operation
597 * DESCRIPTION: Execute a logical "Numeric" AML opcode. For these Numeric
598 * operators (LAnd and LOr), both operands must be integers.
600 * Note: cleanest machine code seems to be produced by the code
601 * below, rather than using statements of the form:
602 * Result = (Integer0 && Integer1);
604 ******************************************************************************/
607 AcpiExDoLogicalNumericOp (
611 BOOLEAN
*LogicalResult
)
613 ACPI_STATUS Status
= AE_OK
;
614 BOOLEAN LocalResult
= FALSE
;
617 ACPI_FUNCTION_TRACE (ExDoLogicalNumericOp
);
622 case AML_LAND_OP
: /* LAnd (Integer0, Integer1) */
624 if (Integer0
&& Integer1
)
630 case AML_LOR_OP
: /* LOr (Integer0, Integer1) */
632 if (Integer0
|| Integer1
)
640 Status
= AE_AML_INTERNAL
;
644 /* Return the logical result and status */
646 *LogicalResult
= LocalResult
;
647 return_ACPI_STATUS (Status
);
651 /*******************************************************************************
653 * FUNCTION: AcpiExDoLogicalOp
655 * PARAMETERS: Opcode - AML opcode
656 * Operand0 - operand #0
657 * Operand1 - operand #1
658 * LogicalResult - TRUE/FALSE result of the operation
662 * DESCRIPTION: Execute a logical AML opcode. The purpose of having all of the
663 * functions here is to prevent a lot of pointer dereferencing
664 * to obtain the operands and to simplify the generation of the
665 * logical value. For the Numeric operators (LAnd and LOr), both
666 * operands must be integers. For the other logical operators,
667 * operands can be any combination of Integer/String/Buffer. The
668 * first operand determines the type to which the second operand
671 * Note: cleanest machine code seems to be produced by the code
672 * below, rather than using statements of the form:
673 * Result = (Operand0 == Operand1);
675 ******************************************************************************/
680 ACPI_OPERAND_OBJECT
*Operand0
,
681 ACPI_OPERAND_OBJECT
*Operand1
,
682 BOOLEAN
*LogicalResult
)
684 ACPI_OPERAND_OBJECT
*LocalOperand1
= Operand1
;
689 ACPI_STATUS Status
= AE_OK
;
690 BOOLEAN LocalResult
= FALSE
;
694 ACPI_FUNCTION_TRACE (ExDoLogicalOp
);
698 * Convert the second operand if necessary. The first operand
699 * determines the type of the second operand, (See the Data Types
700 * section of the ACPI 3.0+ specification.) Both object types are
701 * guaranteed to be either Integer/String/Buffer by the operand
702 * resolution mechanism.
704 switch (Operand0
->Common
.Type
)
706 case ACPI_TYPE_INTEGER
:
708 Status
= AcpiExConvertToInteger (Operand1
, &LocalOperand1
, 16);
711 case ACPI_TYPE_STRING
:
713 Status
= AcpiExConvertToString (Operand1
, &LocalOperand1
,
714 ACPI_IMPLICIT_CONVERT_HEX
);
717 case ACPI_TYPE_BUFFER
:
719 Status
= AcpiExConvertToBuffer (Operand1
, &LocalOperand1
);
724 Status
= AE_AML_INTERNAL
;
728 if (ACPI_FAILURE (Status
))
734 * Two cases: 1) Both Integers, 2) Both Strings or Buffers
736 if (Operand0
->Common
.Type
== ACPI_TYPE_INTEGER
)
739 * 1) Both operands are of type integer
740 * Note: LocalOperand1 may have changed above
742 Integer0
= Operand0
->Integer
.Value
;
743 Integer1
= LocalOperand1
->Integer
.Value
;
747 case AML_LEQUAL_OP
: /* LEqual (Operand0, Operand1) */
749 if (Integer0
== Integer1
)
755 case AML_LGREATER_OP
: /* LGreater (Operand0, Operand1) */
757 if (Integer0
> Integer1
)
763 case AML_LLESS_OP
: /* LLess (Operand0, Operand1) */
765 if (Integer0
< Integer1
)
773 Status
= AE_AML_INTERNAL
;
780 * 2) Both operands are Strings or both are Buffers
781 * Note: Code below takes advantage of common Buffer/String
782 * object fields. LocalOperand1 may have changed above. Use
783 * memcmp to handle nulls in buffers.
785 Length0
= Operand0
->Buffer
.Length
;
786 Length1
= LocalOperand1
->Buffer
.Length
;
788 /* Lexicographic compare: compare the data bytes */
790 Compare
= ACPI_MEMCMP (Operand0
->Buffer
.Pointer
,
791 LocalOperand1
->Buffer
.Pointer
,
792 (Length0
> Length1
) ? Length1
: Length0
);
796 case AML_LEQUAL_OP
: /* LEqual (Operand0, Operand1) */
798 /* Length and all bytes must be equal */
800 if ((Length0
== Length1
) &&
803 /* Length and all bytes match ==> TRUE */
809 case AML_LGREATER_OP
: /* LGreater (Operand0, Operand1) */
814 goto Cleanup
; /* TRUE */
818 goto Cleanup
; /* FALSE */
821 /* Bytes match (to shortest length), compare lengths */
823 if (Length0
> Length1
)
829 case AML_LLESS_OP
: /* LLess (Operand0, Operand1) */
833 goto Cleanup
; /* FALSE */
838 goto Cleanup
; /* TRUE */
841 /* Bytes match (to shortest length), compare lengths */
843 if (Length0
< Length1
)
851 Status
= AE_AML_INTERNAL
;
858 /* New object was created if implicit conversion performed - delete */
860 if (LocalOperand1
!= Operand1
)
862 AcpiUtRemoveReference (LocalOperand1
);
865 /* Return the logical result and status */
867 *LogicalResult
= LocalResult
;
868 return_ACPI_STATUS (Status
);