![]() |
|
|||
File indexing completed on 2025-05-11 08:24:02
0001 /****************************************************************************** 0002 * 0003 * Module Name: exmisc - ACPI AML (p-code) execution - specific opcodes 0004 * 0005 *****************************************************************************/ 0006 0007 /****************************************************************************** 0008 * 0009 * 1. Copyright Notice 0010 * 0011 * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp. 0012 * All rights reserved. 0013 * 0014 * 2. License 0015 * 0016 * 2.1. This is your license from Intel Corp. under its intellectual property 0017 * rights. You may have additional license terms from the party that provided 0018 * you this software, covering your right to use that party's intellectual 0019 * property rights. 0020 * 0021 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 0022 * copy of the source code appearing in this file ("Covered Code") an 0023 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 0024 * base code distributed originally by Intel ("Original Intel Code") to copy, 0025 * make derivatives, distribute, use and display any portion of the Covered 0026 * Code in any form, with the right to sublicense such rights; and 0027 * 0028 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 0029 * license (with the right to sublicense), under only those claims of Intel 0030 * patents that are infringed by the Original Intel Code, to make, use, sell, 0031 * offer to sell, and import the Covered Code and derivative works thereof 0032 * solely to the minimum extent necessary to exercise the above copyright 0033 * license, and in no event shall the patent license extend to any additions 0034 * to or modifications of the Original Intel Code. No other license or right 0035 * is granted directly or by implication, estoppel or otherwise; 0036 * 0037 * The above copyright and patent license is granted only if the following 0038 * conditions are met: 0039 * 0040 * 3. Conditions 0041 * 0042 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 0043 * Redistribution of source code of any substantial portion of the Covered 0044 * Code or modification with rights to further distribute source must include 0045 * the above Copyright Notice, the above License, this list of Conditions, 0046 * and the following Disclaimer and Export Compliance provision. In addition, 0047 * Licensee must cause all Covered Code to which Licensee contributes to 0048 * contain a file documenting the changes Licensee made to create that Covered 0049 * Code and the date of any change. Licensee must include in that file the 0050 * documentation of any changes made by any predecessor Licensee. Licensee 0051 * must include a prominent statement that the modification is derived, 0052 * directly or indirectly, from Original Intel Code. 0053 * 0054 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 0055 * Redistribution of source code of any substantial portion of the Covered 0056 * Code or modification without rights to further distribute source must 0057 * include the following Disclaimer and Export Compliance provision in the 0058 * documentation and/or other materials provided with distribution. In 0059 * addition, Licensee may not authorize further sublicense of source of any 0060 * portion of the Covered Code, and must include terms to the effect that the 0061 * license from Licensee to its licensee is limited to the intellectual 0062 * property embodied in the software Licensee provides to its licensee, and 0063 * not to intellectual property embodied in modifications its licensee may 0064 * make. 0065 * 0066 * 3.3. Redistribution of Executable. Redistribution in executable form of any 0067 * substantial portion of the Covered Code or modification must reproduce the 0068 * above Copyright Notice, and the following Disclaimer and Export Compliance 0069 * provision in the documentation and/or other materials provided with the 0070 * distribution. 0071 * 0072 * 3.4. Intel retains all right, title, and interest in and to the Original 0073 * Intel Code. 0074 * 0075 * 3.5. Neither the name Intel nor any other trademark owned or controlled by 0076 * Intel shall be used in advertising or otherwise to promote the sale, use or 0077 * other dealings in products derived from or relating to the Covered Code 0078 * without prior written authorization from Intel. 0079 * 0080 * 4. Disclaimer and Export Compliance 0081 * 0082 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 0083 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 0084 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 0085 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 0086 0087 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 0088 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 0089 * PARTICULAR PURPOSE. 0090 * 0091 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 0092 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 0093 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 0094 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 0095 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 0096 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 0097 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 0098 * LIMITED REMEDY. 0099 * 0100 * 4.3. Licensee shall not export, either directly or indirectly, any of this 0101 * software or system incorporating such software without first obtaining any 0102 * required license or other approval from the U. S. Department of Commerce or 0103 * any other agency or department of the United States Government. In the 0104 * event Licensee exports any such software from the United States or 0105 * re-exports any such software from a foreign destination, Licensee shall 0106 * ensure that the distribution and export/re-export of the software is in 0107 * compliance with all laws, regulations, orders, or other restrictions of the 0108 * U.S. Export Administration Regulations. Licensee agrees that neither it nor 0109 * any of its subsidiaries will export/re-export any technical data, process, 0110 * software, or service, directly or indirectly, to any country for which the 0111 * United States government or any agency thereof requires an export license, 0112 * other governmental approval, or letter of assurance, without first obtaining 0113 * such license, approval or letter. 0114 * 0115 ***************************************************************************** 0116 * 0117 * Alternatively, you may choose to be licensed under the terms of the 0118 * following license: 0119 * 0120 * Redistribution and use in source and binary forms, with or without 0121 * modification, are permitted provided that the following conditions 0122 * are met: 0123 * 1. Redistributions of source code must retain the above copyright 0124 * notice, this list of conditions, and the following disclaimer, 0125 * without modification. 0126 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 0127 * substantially similar to the "NO WARRANTY" disclaimer below 0128 * ("Disclaimer") and any redistribution must be conditioned upon 0129 * including a substantially similar Disclaimer requirement for further 0130 * binary redistribution. 0131 * 3. Neither the names of the above-listed copyright holders nor the names 0132 * of any contributors may be used to endorse or promote products derived 0133 * from this software without specific prior written permission. 0134 * 0135 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 0136 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 0137 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 0138 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 0139 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 0140 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 0141 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0142 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0143 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0144 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 0145 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0146 * 0147 * Alternatively, you may choose to be licensed under the terms of the 0148 * GNU General Public License ("GPL") version 2 as published by the Free 0149 * Software Foundation. 0150 * 0151 *****************************************************************************/ 0152 0153 #include "acpi.h" 0154 #include "accommon.h" 0155 #include "acinterp.h" 0156 #include "amlcode.h" 0157 0158 0159 #define _COMPONENT ACPI_EXECUTER 0160 ACPI_MODULE_NAME ("exmisc") 0161 0162 0163 /******************************************************************************* 0164 * 0165 * FUNCTION: AcpiExGetObjectReference 0166 * 0167 * PARAMETERS: ObjDesc - Create a reference to this object 0168 * ReturnDesc - Where to store the reference 0169 * WalkState - Current state 0170 * 0171 * RETURN: Status 0172 * 0173 * DESCRIPTION: Obtain and return a "reference" to the target object 0174 * Common code for the RefOfOp and the CondRefOfOp. 0175 * 0176 ******************************************************************************/ 0177 0178 ACPI_STATUS 0179 AcpiExGetObjectReference ( 0180 ACPI_OPERAND_OBJECT *ObjDesc, 0181 ACPI_OPERAND_OBJECT **ReturnDesc, 0182 ACPI_WALK_STATE *WalkState) 0183 { 0184 ACPI_OPERAND_OBJECT *ReferenceObj; 0185 ACPI_OPERAND_OBJECT *ReferencedObj; 0186 0187 0188 ACPI_FUNCTION_TRACE_PTR (ExGetObjectReference, ObjDesc); 0189 0190 0191 *ReturnDesc = NULL; 0192 0193 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc)) 0194 { 0195 case ACPI_DESC_TYPE_OPERAND: 0196 0197 if (ObjDesc->Common.Type != ACPI_TYPE_LOCAL_REFERENCE) 0198 { 0199 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 0200 } 0201 0202 /* 0203 * Must be a reference to a Local or Arg 0204 */ 0205 switch (ObjDesc->Reference.Class) 0206 { 0207 case ACPI_REFCLASS_LOCAL: 0208 case ACPI_REFCLASS_ARG: 0209 case ACPI_REFCLASS_DEBUG: 0210 0211 /* The referenced object is the pseudo-node for the local/arg */ 0212 0213 ReferencedObj = ObjDesc->Reference.Object; 0214 break; 0215 0216 default: 0217 0218 ACPI_ERROR ((AE_INFO, "Invalid Reference Class 0x%2.2X", 0219 ObjDesc->Reference.Class)); 0220 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 0221 } 0222 break; 0223 0224 case ACPI_DESC_TYPE_NAMED: 0225 /* 0226 * A named reference that has already been resolved to a Node 0227 */ 0228 ReferencedObj = ObjDesc; 0229 break; 0230 0231 default: 0232 0233 ACPI_ERROR ((AE_INFO, "Invalid descriptor type 0x%X", 0234 ACPI_GET_DESCRIPTOR_TYPE (ObjDesc))); 0235 return_ACPI_STATUS (AE_TYPE); 0236 } 0237 0238 0239 /* Create a new reference object */ 0240 0241 ReferenceObj = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_REFERENCE); 0242 if (!ReferenceObj) 0243 { 0244 return_ACPI_STATUS (AE_NO_MEMORY); 0245 } 0246 0247 ReferenceObj->Reference.Class = ACPI_REFCLASS_REFOF; 0248 ReferenceObj->Reference.Object = ReferencedObj; 0249 *ReturnDesc = ReferenceObj; 0250 0251 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, 0252 "Object %p Type [%s], returning Reference %p\n", 0253 ObjDesc, AcpiUtGetObjectTypeName (ObjDesc), *ReturnDesc)); 0254 0255 return_ACPI_STATUS (AE_OK); 0256 } 0257 0258 0259 /******************************************************************************* 0260 * 0261 * FUNCTION: AcpiExDoMathOp 0262 * 0263 * PARAMETERS: Opcode - AML opcode 0264 * Integer0 - Integer operand #0 0265 * Integer1 - Integer operand #1 0266 * 0267 * RETURN: Integer result of the operation 0268 * 0269 * DESCRIPTION: Execute a math AML opcode. The purpose of having all of the 0270 * math functions here is to prevent a lot of pointer dereferencing 0271 * to obtain the operands. 0272 * 0273 ******************************************************************************/ 0274 0275 UINT64 0276 AcpiExDoMathOp ( 0277 UINT16 Opcode, 0278 UINT64 Integer0, 0279 UINT64 Integer1) 0280 { 0281 0282 ACPI_FUNCTION_ENTRY (); 0283 0284 0285 switch (Opcode) 0286 { 0287 case AML_ADD_OP: /* Add (Integer0, Integer1, Result) */ 0288 0289 return (Integer0 + Integer1); 0290 0291 case AML_BIT_AND_OP: /* And (Integer0, Integer1, Result) */ 0292 0293 return (Integer0 & Integer1); 0294 0295 case AML_BIT_NAND_OP: /* NAnd (Integer0, Integer1, Result) */ 0296 0297 return (~(Integer0 & Integer1)); 0298 0299 case AML_BIT_OR_OP: /* Or (Integer0, Integer1, Result) */ 0300 0301 return (Integer0 | Integer1); 0302 0303 case AML_BIT_NOR_OP: /* NOr (Integer0, Integer1, Result) */ 0304 0305 return (~(Integer0 | Integer1)); 0306 0307 case AML_BIT_XOR_OP: /* XOr (Integer0, Integer1, Result) */ 0308 0309 return (Integer0 ^ Integer1); 0310 0311 case AML_MULTIPLY_OP: /* Multiply (Integer0, Integer1, Result) */ 0312 0313 return (Integer0 * Integer1); 0314 0315 case AML_SHIFT_LEFT_OP: /* ShiftLeft (Operand, ShiftCount, Result)*/ 0316 0317 /* 0318 * We need to check if the shiftcount is larger than the integer bit 0319 * width since the behavior of this is not well-defined in the C language. 0320 */ 0321 if (Integer1 >= AcpiGbl_IntegerBitWidth) 0322 { 0323 return (0); 0324 } 0325 return (Integer0 << Integer1); 0326 0327 case AML_SHIFT_RIGHT_OP: /* ShiftRight (Operand, ShiftCount, Result) */ 0328 0329 /* 0330 * We need to check if the shiftcount is larger than the integer bit 0331 * width since the behavior of this is not well-defined in the C language. 0332 */ 0333 if (Integer1 >= AcpiGbl_IntegerBitWidth) 0334 { 0335 return (0); 0336 } 0337 return (Integer0 >> Integer1); 0338 0339 case AML_SUBTRACT_OP: /* Subtract (Integer0, Integer1, Result) */ 0340 0341 return (Integer0 - Integer1); 0342 0343 default: 0344 0345 return (0); 0346 } 0347 } 0348 0349 0350 /******************************************************************************* 0351 * 0352 * FUNCTION: AcpiExDoLogicalNumericOp 0353 * 0354 * PARAMETERS: Opcode - AML opcode 0355 * Integer0 - Integer operand #0 0356 * Integer1 - Integer operand #1 0357 * LogicalResult - TRUE/FALSE result of the operation 0358 * 0359 * RETURN: Status 0360 * 0361 * DESCRIPTION: Execute a logical "Numeric" AML opcode. For these Numeric 0362 * operators (LAnd and LOr), both operands must be integers. 0363 * 0364 * Note: cleanest machine code seems to be produced by the code 0365 * below, rather than using statements of the form: 0366 * Result = (Integer0 && Integer1); 0367 * 0368 ******************************************************************************/ 0369 0370 ACPI_STATUS 0371 AcpiExDoLogicalNumericOp ( 0372 UINT16 Opcode, 0373 UINT64 Integer0, 0374 UINT64 Integer1, 0375 BOOLEAN *LogicalResult) 0376 { 0377 ACPI_STATUS Status = AE_OK; 0378 BOOLEAN LocalResult = FALSE; 0379 0380 0381 ACPI_FUNCTION_TRACE (ExDoLogicalNumericOp); 0382 0383 0384 switch (Opcode) 0385 { 0386 case AML_LOGICAL_AND_OP: /* LAnd (Integer0, Integer1) */ 0387 0388 if (Integer0 && Integer1) 0389 { 0390 LocalResult = TRUE; 0391 } 0392 break; 0393 0394 case AML_LOGICAL_OR_OP: /* LOr (Integer0, Integer1) */ 0395 0396 if (Integer0 || Integer1) 0397 { 0398 LocalResult = TRUE; 0399 } 0400 break; 0401 0402 default: 0403 0404 ACPI_ERROR ((AE_INFO, 0405 "Invalid numeric logical opcode: %X", Opcode)); 0406 Status = AE_AML_INTERNAL; 0407 break; 0408 } 0409 0410 /* Return the logical result and status */ 0411 0412 *LogicalResult = LocalResult; 0413 return_ACPI_STATUS (Status); 0414 } 0415 0416 0417 /******************************************************************************* 0418 * 0419 * FUNCTION: AcpiExDoLogicalOp 0420 * 0421 * PARAMETERS: Opcode - AML opcode 0422 * Operand0 - operand #0 0423 * Operand1 - operand #1 0424 * LogicalResult - TRUE/FALSE result of the operation 0425 * 0426 * RETURN: Status 0427 * 0428 * DESCRIPTION: Execute a logical AML opcode. The purpose of having all of the 0429 * functions here is to prevent a lot of pointer dereferencing 0430 * to obtain the operands and to simplify the generation of the 0431 * logical value. For the Numeric operators (LAnd and LOr), both 0432 * operands must be integers. For the other logical operators, 0433 * operands can be any combination of Integer/String/Buffer. The 0434 * first operand determines the type to which the second operand 0435 * will be converted. 0436 * 0437 * Note: cleanest machine code seems to be produced by the code 0438 * below, rather than using statements of the form: 0439 * Result = (Operand0 == Operand1); 0440 * 0441 ******************************************************************************/ 0442 0443 ACPI_STATUS 0444 AcpiExDoLogicalOp ( 0445 UINT16 Opcode, 0446 ACPI_OPERAND_OBJECT *Operand0, 0447 ACPI_OPERAND_OBJECT *Operand1, 0448 BOOLEAN *LogicalResult) 0449 { 0450 ACPI_OPERAND_OBJECT *LocalOperand1 = Operand1; 0451 UINT64 Integer0; 0452 UINT64 Integer1; 0453 UINT32 Length0; 0454 UINT32 Length1; 0455 ACPI_STATUS Status = AE_OK; 0456 BOOLEAN LocalResult = FALSE; 0457 int Compare; 0458 0459 0460 ACPI_FUNCTION_TRACE (ExDoLogicalOp); 0461 0462 0463 /* 0464 * Convert the second operand if necessary. The first operand 0465 * determines the type of the second operand, (See the Data Types 0466 * section of the ACPI 3.0+ specification.) Both object types are 0467 * guaranteed to be either Integer/String/Buffer by the operand 0468 * resolution mechanism. 0469 */ 0470 switch (Operand0->Common.Type) 0471 { 0472 case ACPI_TYPE_INTEGER: 0473 0474 Status = AcpiExConvertToInteger (Operand1, &LocalOperand1, 0475 ACPI_IMPLICIT_CONVERSION); 0476 break; 0477 0478 case ACPI_TYPE_STRING: 0479 0480 Status = AcpiExConvertToString ( 0481 Operand1, &LocalOperand1, ACPI_IMPLICIT_CONVERT_HEX); 0482 break; 0483 0484 case ACPI_TYPE_BUFFER: 0485 0486 Status = AcpiExConvertToBuffer (Operand1, &LocalOperand1); 0487 break; 0488 0489 default: 0490 0491 ACPI_ERROR ((AE_INFO, 0492 "Invalid object type for logical operator: %X", 0493 Operand0->Common.Type)); 0494 Status = AE_AML_INTERNAL; 0495 break; 0496 } 0497 0498 if (ACPI_FAILURE (Status)) 0499 { 0500 goto Cleanup; 0501 } 0502 0503 /* 0504 * Two cases: 1) Both Integers, 2) Both Strings or Buffers 0505 */ 0506 if (Operand0->Common.Type == ACPI_TYPE_INTEGER) 0507 { 0508 /* 0509 * 1) Both operands are of type integer 0510 * Note: LocalOperand1 may have changed above 0511 */ 0512 Integer0 = Operand0->Integer.Value; 0513 Integer1 = LocalOperand1->Integer.Value; 0514 0515 switch (Opcode) 0516 { 0517 case AML_LOGICAL_EQUAL_OP: /* LEqual (Operand0, Operand1) */ 0518 0519 if (Integer0 == Integer1) 0520 { 0521 LocalResult = TRUE; 0522 } 0523 break; 0524 0525 case AML_LOGICAL_GREATER_OP: /* LGreater (Operand0, Operand1) */ 0526 0527 if (Integer0 > Integer1) 0528 { 0529 LocalResult = TRUE; 0530 } 0531 break; 0532 0533 case AML_LOGICAL_LESS_OP: /* LLess (Operand0, Operand1) */ 0534 0535 if (Integer0 < Integer1) 0536 { 0537 LocalResult = TRUE; 0538 } 0539 break; 0540 0541 default: 0542 0543 ACPI_ERROR ((AE_INFO, 0544 "Invalid comparison opcode: %X", Opcode)); 0545 Status = AE_AML_INTERNAL; 0546 break; 0547 } 0548 } 0549 else 0550 { 0551 /* 0552 * 2) Both operands are Strings or both are Buffers 0553 * Note: Code below takes advantage of common Buffer/String 0554 * object fields. LocalOperand1 may have changed above. Use 0555 * memcmp to handle nulls in buffers. 0556 */ 0557 Length0 = Operand0->Buffer.Length; 0558 Length1 = LocalOperand1->Buffer.Length; 0559 0560 /* Lexicographic compare: compare the data bytes */ 0561 0562 Compare = memcmp (Operand0->Buffer.Pointer, 0563 LocalOperand1->Buffer.Pointer, 0564 (Length0 > Length1) ? Length1 : Length0); 0565 0566 switch (Opcode) 0567 { 0568 case AML_LOGICAL_EQUAL_OP: /* LEqual (Operand0, Operand1) */ 0569 0570 /* Length and all bytes must be equal */ 0571 0572 if ((Length0 == Length1) && 0573 (Compare == 0)) 0574 { 0575 /* Length and all bytes match ==> TRUE */ 0576 0577 LocalResult = TRUE; 0578 } 0579 break; 0580 0581 case AML_LOGICAL_GREATER_OP: /* LGreater (Operand0, Operand1) */ 0582 0583 if (Compare > 0) 0584 { 0585 LocalResult = TRUE; 0586 goto Cleanup; /* TRUE */ 0587 } 0588 if (Compare < 0) 0589 { 0590 goto Cleanup; /* FALSE */ 0591 } 0592 0593 /* Bytes match (to shortest length), compare lengths */ 0594 0595 if (Length0 > Length1) 0596 { 0597 LocalResult = TRUE; 0598 } 0599 break; 0600 0601 case AML_LOGICAL_LESS_OP: /* LLess (Operand0, Operand1) */ 0602 0603 if (Compare > 0) 0604 { 0605 goto Cleanup; /* FALSE */ 0606 } 0607 if (Compare < 0) 0608 { 0609 LocalResult = TRUE; 0610 goto Cleanup; /* TRUE */ 0611 } 0612 0613 /* Bytes match (to shortest length), compare lengths */ 0614 0615 if (Length0 < Length1) 0616 { 0617 LocalResult = TRUE; 0618 } 0619 break; 0620 0621 default: 0622 0623 ACPI_ERROR ((AE_INFO, 0624 "Invalid comparison opcode: %X", Opcode)); 0625 Status = AE_AML_INTERNAL; 0626 break; 0627 } 0628 } 0629 0630 Cleanup: 0631 0632 /* New object was created if implicit conversion performed - delete */ 0633 0634 if (LocalOperand1 != Operand1) 0635 { 0636 AcpiUtRemoveReference (LocalOperand1); 0637 } 0638 0639 /* Return the logical result and status */ 0640 0641 *LogicalResult = LocalResult; 0642 return_ACPI_STATUS (Status); 0643 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |