1 /******************************************************************************
3 * Module Name: aslfold - Constant folding
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2015, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
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.
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.
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.
44 #include "aslcompiler.h"
45 #include "aslcompiler.y.h"
51 #define _COMPONENT ACPI_COMPILER
52 ACPI_MODULE_NAME ("aslfold")
54 /* Local prototypes */
57 OpcAmlEvaluationWalk1 (
58 ACPI_PARSE_OBJECT *Op,
63 OpcAmlEvaluationWalk2 (
64 ACPI_PARSE_OBJECT *Op,
69 OpcAmlCheckForConstant (
70 ACPI_PARSE_OBJECT *Op,
75 OpcUpdateIntegerNode (
76 ACPI_PARSE_OBJECT *Op,
80 TrTransformToStoreOp (
81 ACPI_PARSE_OBJECT *Op,
82 ACPI_WALK_STATE *WalkState);
85 TrSimpleConstantReduction (
86 ACPI_PARSE_OBJECT *Op,
87 ACPI_WALK_STATE *WalkState);
90 TrInstallReducedConstant (
91 ACPI_PARSE_OBJECT *Op,
92 ACPI_OPERAND_OBJECT *ObjDesc);
95 /*******************************************************************************
97 * FUNCTION: OpcAmlConstantWalk
99 * PARAMETERS: ASL_WALK_CALLBACK
103 * DESCRIPTION: Reduce an Op and its subtree to a constant if possible.
105 ******************************************************************************/
109 ACPI_PARSE_OBJECT *Op,
113 ACPI_WALK_STATE *WalkState;
114 ACPI_STATUS Status = AE_OK;
117 if (Op->Asl.CompileFlags == 0)
123 * Only interested in subtrees that could possibly contain
124 * expressions that can be evaluated at this time
126 if ((!(Op->Asl.CompileFlags & NODE_COMPILE_TIME_CONST)) ||
127 (Op->Asl.CompileFlags & NODE_IS_TARGET))
132 /* Create a new walk state */
134 WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL);
137 return (AE_NO_MEMORY);
140 WalkState->NextOp = NULL;
141 WalkState->Params = NULL;
144 * Examine the entire subtree -- all nodes must be constants
145 * or type 3/4/5 opcodes
147 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_DOWNWARD,
148 OpcAmlCheckForConstant, NULL, WalkState);
151 * Did we find an entire subtree that contains all constants
152 * and type 3/4/5 opcodes?
158 /* Simple case, like Add(3,4) -> 7 */
160 Status = TrSimpleConstantReduction (Op, WalkState);
163 case AE_CTRL_RETURN_VALUE:
165 /* More complex case, like Add(3,4,Local0) -> Store(7,Local0) */
167 Status = TrTransformToStoreOp (Op, WalkState);
172 AcpiDsDeleteWalkState (WalkState);
176 AcpiDsDeleteWalkState (WalkState);
180 if (ACPI_FAILURE (Status))
182 DbgPrint (ASL_PARSE_OUTPUT, "Cannot resolve, %s\n",
183 AcpiFormatException (Status));
185 /* We could not resolve the subtree for some reason */
187 AslError (ASL_ERROR, ASL_MSG_CONSTANT_EVALUATION, Op,
188 (char *) AcpiFormatException (Status));
190 /* Set the subtree value to ZERO anyway. Eliminates further errors */
192 OpcUpdateIntegerNode (Op, 0);
195 /* Abort the walk of this subtree, we are done with it */
197 return (AE_CTRL_DEPTH);
201 /*******************************************************************************
203 * FUNCTION: OpcAmlCheckForConstant
205 * PARAMETERS: ASL_WALK_CALLBACK
209 * DESCRIPTION: Check one Op for a reducible type 3/4/5 AML opcode.
210 * This is performed via a downward walk of the parse subtree.
212 ******************************************************************************/
215 OpcAmlCheckForConstant (
216 ACPI_PARSE_OBJECT *Op,
220 ACPI_WALK_STATE *WalkState = Context;
221 ACPI_STATUS Status = AE_OK;
222 ACPI_PARSE_OBJECT *NextOp;
223 const ACPI_OPCODE_INFO *OpInfo;
227 WalkState->Opcode = Op->Common.AmlOpcode;
228 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
230 DbgPrint (ASL_PARSE_OUTPUT, "[%.4d] Opcode: %12.12s ",
231 Op->Asl.LogicalLineNumber, Op->Asl.ParseOpName);
234 * These opcodes do not appear in the OpcodeInfo table, but
235 * they represent constants, so abort the constant walk now.
237 if ((WalkState->Opcode == AML_RAW_DATA_BYTE) ||
238 (WalkState->Opcode == AML_RAW_DATA_WORD) ||
239 (WalkState->Opcode == AML_RAW_DATA_DWORD) ||
240 (WalkState->Opcode == AML_RAW_DATA_QWORD))
242 DbgPrint (ASL_PARSE_OUTPUT, "RAW DATA");
248 * Search upwards for a possible Name() operator. This is done
249 * because a type 3/4/5 opcode within a Name() expression
250 * MUST be reduced to a simple constant.
252 NextOp = Op->Asl.Parent;
255 /* Finished if we find a Name() opcode */
257 if (NextOp->Asl.AmlOpcode == AML_NAME_OP)
263 * Any "deferred" opcodes contain one or more TermArg parameters,
264 * and thus are not required to be folded to constants at compile
265 * time. This affects things like Buffer() and Package() objects.
266 * We just ignore them here. However, any sub-expressions can and
267 * will still be typechecked. Note: These are called the
268 * "deferred" opcodes in the AML interpreter.
270 OpInfo = AcpiPsGetOpcodeInfo (NextOp->Common.AmlOpcode);
271 if (OpInfo->Flags & AML_DEFER)
277 NextOp = NextOp->Asl.Parent;
280 /* Type 3/4/5 opcodes have the AML_CONSTANT flag set */
282 if (!(WalkState->OpInfo->Flags & AML_CONSTANT))
285 * From the ACPI specification:
287 * "The Type 3/4/5 opcodes return a value and can be used in an
288 * expression that evaluates to a constant. These opcodes may be
289 * evaluated at ASL compile-time. To ensure that these opcodes
290 * will evaluate to a constant, the following rules apply: The
291 * term cannot have a destination (target) operand, and must have
292 * either a Type3Opcode, Type4Opcode, Type5Opcode, ConstExprTerm,
293 * Integer, BufferTerm, Package, or String for all arguments."
297 * The value (second) operand for the Name() operator MUST
298 * reduce to a single constant, as per the ACPI specification
299 * (the operand is a DataObject). This also implies that there
300 * can be no target operand. Name() is the only ASL operator
301 * with a "DataObject" as an operand and is thus special-
304 if (NextOp) /* Inspect a Name() operator */
306 /* Error if there is a target operand */
308 if (Op->Asl.CompileFlags & NODE_IS_TARGET)
310 AslError (ASL_ERROR, ASL_MSG_INVALID_TARGET, Op, NULL);
314 /* Error if expression cannot be reduced (folded) */
316 if (!(NextOp->Asl.CompileFlags & NODE_COULD_NOT_REDUCE))
318 /* Ensure only one error message per statement */
320 NextOp->Asl.CompileFlags |= NODE_COULD_NOT_REDUCE;
321 DbgPrint (ASL_PARSE_OUTPUT,
322 "**** Could not reduce operands for NAME opcode ****\n");
324 AslError (ASL_ERROR, ASL_MSG_CONSTANT_REQUIRED, Op,
325 "Constant is required for Name operator");
330 if (ACPI_FAILURE (Status))
335 /* This is not a 3/4/5 opcode, but maybe can convert to STORE */
337 if (Op->Asl.CompileFlags & NODE_IS_TARGET)
339 DbgPrint (ASL_PARSE_OUTPUT,
340 "**** Valid Target, transform to Store ****\n");
341 return (AE_CTRL_RETURN_VALUE);
344 /* Expression cannot be reduced */
346 DbgPrint (ASL_PARSE_OUTPUT,
347 "**** Not a Type 3/4/5 opcode or cannot reduce/fold (%s) ****\n",
348 Op->Asl.ParseOpName);
355 * TBD: Ignore buffer constants for now. The problem is that these
356 * constants have been transformed into RAW_DATA at this point, from
357 * the parse tree transform process which currently happens before
358 * the constant folding process. We may need to defer this transform
359 * for buffer until after the constant folding.
361 if (WalkState->Opcode == AML_BUFFER_OP)
363 DbgPrint (ASL_PARSE_OUTPUT,
364 "\nBuffer constant reduction is not supported yet\n");
366 if (NextOp) /* Found a Name() operator, error */
368 AslError (ASL_ERROR, ASL_MSG_UNSUPPORTED, Op,
369 "Buffer expression cannot be reduced");
379 DbgPrint (ASL_PARSE_OUTPUT, "TYPE_345");
381 if (Op->Asl.CompileFlags & NODE_IS_TARGET)
383 if (Op->Asl.ParseOpcode == PARSEOP_ZERO)
385 DbgPrint (ASL_PARSE_OUTPUT, "%-16s", " NULL TARGET");
389 DbgPrint (ASL_PARSE_OUTPUT, "%-16s", " VALID TARGET");
393 if (Op->Asl.CompileFlags & NODE_IS_TERM_ARG)
395 DbgPrint (ASL_PARSE_OUTPUT, "%-16s", " TERMARG");
400 /* Dump the node compile flags also */
402 TrPrintNodeCompileFlags (Op->Asl.CompileFlags);
403 DbgPrint (ASL_PARSE_OUTPUT, "\n");
408 /*******************************************************************************
410 * FUNCTION: TrSimpleConstantReduction
412 * PARAMETERS: Op - Parent operator to be transformed
413 * WalkState - Current walk state
417 * DESCRIPTION: Reduce an entire AML operation to a single constant. The
418 * operation must not have a target operand.
422 ******************************************************************************/
425 TrSimpleConstantReduction (
426 ACPI_PARSE_OBJECT *Op,
427 ACPI_WALK_STATE *WalkState)
429 ACPI_PARSE_OBJECT *RootOp;
430 ACPI_PARSE_OBJECT *OriginalParentOp;
431 ACPI_OPERAND_OBJECT *ObjDesc;
435 DbgPrint (ASL_PARSE_OUTPUT,
436 "Simple subtree constant reduction, operator to constant\n");
438 /* Allocate a new temporary root for this subtree */
440 RootOp = TrAllocateNode (PARSEOP_INTEGER);
443 return (AE_NO_MEMORY);
446 RootOp->Common.AmlOpcode = AML_INT_EVAL_SUBTREE_OP;
448 OriginalParentOp = Op->Common.Parent;
449 Op->Common.Parent = RootOp;
451 /* Hand off the subtree to the AML interpreter */
453 WalkState->CallerReturnDesc = &ObjDesc;
455 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE,
456 OpcAmlEvaluationWalk1, OpcAmlEvaluationWalk2, WalkState);
458 /* Restore original parse tree */
460 Op->Common.Parent = OriginalParentOp;
462 if (ACPI_FAILURE (Status))
464 DbgPrint (ASL_PARSE_OUTPUT,
465 "Constant Subtree evaluation(1), %s\n",
466 AcpiFormatException (Status));
470 /* Get the final result */
472 Status = AcpiDsResultPop (&ObjDesc, WalkState);
473 if (ACPI_FAILURE (Status))
475 DbgPrint (ASL_PARSE_OUTPUT,
476 "Constant Subtree evaluation(2), %s\n",
477 AcpiFormatException (Status));
481 /* Disconnect any existing children, install new constant */
483 Op->Asl.Child = NULL;
484 TrInstallReducedConstant (Op, ObjDesc);
486 UtSetParseOpName (Op);
491 /*******************************************************************************
493 * FUNCTION: TrTransformToStoreOp
495 * PARAMETERS: Op - Parent operator to be transformed
496 * WalkState - Current walk state
500 * DESCRIPTION: Transforms a single AML operation with a constant and target
501 * to a simple store operation:
503 * Add (32,64,DATA) --> Store (96,DATA)
505 ******************************************************************************/
508 TrTransformToStoreOp (
509 ACPI_PARSE_OBJECT *Op,
510 ACPI_WALK_STATE *WalkState)
512 ACPI_PARSE_OBJECT *OriginalTarget;
513 ACPI_PARSE_OBJECT *NewTarget;
514 ACPI_PARSE_OBJECT *Child1;
515 ACPI_PARSE_OBJECT *Child2;
516 ACPI_OPERAND_OBJECT *ObjDesc;
517 ACPI_PARSE_OBJECT *NewParent;
518 ACPI_PARSE_OBJECT *OriginalParent;
522 DbgPrint (ASL_PARSE_OUTPUT,
523 "Reduction/Transform to StoreOp: Store(Constant, Target)\n");
525 /* Extract the operands */
527 Child1 = Op->Asl.Child;
528 Child2 = Child1->Asl.Next;
531 * Special case for DIVIDE -- it has two targets. The first
532 * is for the remainder and if present, we will not attempt
533 * to reduce the expression.
535 if (Op->Asl.ParseOpcode == PARSEOP_DIVIDE)
537 Child2 = Child2->Asl.Next;
538 if (Child2->Asl.ParseOpcode != PARSEOP_ZERO)
540 DbgPrint (ASL_PARSE_OUTPUT,
541 "Cannot reduce DIVIDE - has two targets\n\n");
547 * Create a NULL (zero) target so that we can use the
548 * interpreter to evaluate the expression.
550 NewTarget = TrCreateNullTarget ();
551 NewTarget->Common.AmlOpcode = AML_INT_NAMEPATH_OP;
553 /* Handle one-operand cases (NOT, TOBCD, etc.) */
555 if (!Child2->Asl.Next)
560 /* Link in new NULL target as the last operand */
562 OriginalTarget = Child2->Asl.Next;
563 Child2->Asl.Next = NewTarget;
564 NewTarget->Asl.Parent = OriginalTarget->Asl.Parent;
566 NewParent = TrAllocateNode (PARSEOP_INTEGER);
567 NewParent->Common.AmlOpcode = AML_INT_EVAL_SUBTREE_OP;
569 OriginalParent = Op->Common.Parent;
570 Op->Common.Parent = NewParent;
572 /* Hand off the subtree to the AML interpreter */
574 WalkState->CallerReturnDesc = &ObjDesc;
576 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE,
577 OpcAmlEvaluationWalk1, OpcAmlEvaluationWalk2, WalkState);
578 if (ACPI_FAILURE (Status))
580 DbgPrint (ASL_PARSE_OUTPUT,
581 "Constant Subtree evaluation(3), %s\n",
582 AcpiFormatException (Status));
586 /* Get the final result */
588 Status = AcpiDsResultPop (&ObjDesc, WalkState);
589 if (ACPI_FAILURE (Status))
591 DbgPrint (ASL_PARSE_OUTPUT,
592 "Constant Subtree evaluation(4), %s\n",
593 AcpiFormatException (Status));
597 /* Truncate any subtree expressions, they have been evaluated */
599 Child1->Asl.Child = NULL;
601 /* Folded constant is in ObjDesc, store into Child1 */
603 TrInstallReducedConstant (Child1, ObjDesc);
605 /* Convert operator to STORE */
607 Op->Asl.ParseOpcode = PARSEOP_STORE;
608 Op->Asl.AmlOpcode = AML_STORE_OP;
609 UtSetParseOpName (Op);
610 Op->Common.Parent = OriginalParent;
612 /* First child is the folded constant */
614 /* Second child will be the target */
616 Child1->Asl.Next = OriginalTarget;
622 /* Restore original links */
624 Op->Common.Parent = OriginalParent;
625 Child2->Asl.Next = OriginalTarget;
630 /*******************************************************************************
632 * FUNCTION: TrInstallReducedConstant
634 * PARAMETERS: Op - Parent operator to be transformed
635 * ObjDesc - Reduced constant to be installed
639 * DESCRIPTION: Transform the original operator to a simple constant.
640 * Handles Integers, Strings, and Buffers.
642 ******************************************************************************/
645 TrInstallReducedConstant (
646 ACPI_PARSE_OBJECT *Op,
647 ACPI_OPERAND_OBJECT *ObjDesc)
649 ACPI_PARSE_OBJECT *LengthOp;
650 ACPI_PARSE_OBJECT *DataOp;
654 AslError (ASL_OPTIMIZATION, ASL_MSG_CONSTANT_FOLDED, Op,
655 Op->Asl.ParseOpName);
658 * Because we know we executed type 3/4/5 opcodes above, we know that
659 * the result must be either an Integer, String, or Buffer.
661 switch (ObjDesc->Common.Type)
663 case ACPI_TYPE_INTEGER:
665 OpcUpdateIntegerNode (Op, ObjDesc->Integer.Value);
667 DbgPrint (ASL_PARSE_OUTPUT,
668 "Constant expression reduced to (%s) %8.8X%8.8X\n\n",
670 ACPI_FORMAT_UINT64 (Op->Common.Value.Integer));
673 case ACPI_TYPE_STRING:
675 Op->Asl.ParseOpcode = PARSEOP_STRING_LITERAL;
676 Op->Common.AmlOpcode = AML_STRING_OP;
677 Op->Asl.AmlLength = strlen (ObjDesc->String.Pointer) + 1;
678 Op->Common.Value.String = ObjDesc->String.Pointer;
680 DbgPrint (ASL_PARSE_OUTPUT,
681 "Constant expression reduced to (STRING) %s\n\n",
682 Op->Common.Value.String);
685 case ACPI_TYPE_BUFFER:
687 * Create a new parse subtree of the form:
689 * BUFFER (Buffer AML opcode)
690 * INTEGER (Buffer length in bytes)
691 * RAW_DATA (Buffer byte data)
693 Op->Asl.ParseOpcode = PARSEOP_BUFFER;
694 Op->Common.AmlOpcode = AML_BUFFER_OP;
695 Op->Asl.CompileFlags = NODE_AML_PACKAGE;
696 UtSetParseOpName (Op);
698 /* Child node is the buffer length */
700 LengthOp = TrAllocateNode (PARSEOP_INTEGER);
702 LengthOp->Asl.AmlOpcode = AML_DWORD_OP;
703 LengthOp->Asl.Value.Integer = ObjDesc->Buffer.Length;
704 LengthOp->Asl.Parent = Op;
705 (void) OpcSetOptimalIntegerSize (LengthOp);
707 Op->Asl.Child = LengthOp;
709 /* Next child is the raw buffer data */
711 DataOp = TrAllocateNode (PARSEOP_RAW_DATA);
712 DataOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER;
713 DataOp->Asl.AmlLength = ObjDesc->Buffer.Length;
714 DataOp->Asl.Value.String = (char *) ObjDesc->Buffer.Pointer;
715 DataOp->Asl.Parent = Op;
717 LengthOp->Asl.Next = DataOp;
719 DbgPrint (ASL_PARSE_OUTPUT,
720 "Constant expression reduced to (BUFFER) length %X\n\n",
721 ObjDesc->Buffer.Length);
730 /*******************************************************************************
732 * FUNCTION: OpcUpdateIntegerNode
734 * PARAMETERS: Op - Current parse object
735 * Value - Value for the integer op
739 * DESCRIPTION: Update node to the correct Integer type and value
741 ******************************************************************************/
744 OpcUpdateIntegerNode (
745 ACPI_PARSE_OBJECT *Op,
749 Op->Common.Value.Integer = Value;
752 * The AmlLength is used by the parser to indicate a constant,
753 * (if non-zero). Length is either (1/2/4/8)
755 switch (Op->Asl.AmlLength)
759 TrUpdateNode (PARSEOP_BYTECONST, Op);
760 Op->Asl.AmlOpcode = AML_RAW_DATA_BYTE;
765 TrUpdateNode (PARSEOP_WORDCONST, Op);
766 Op->Asl.AmlOpcode = AML_RAW_DATA_WORD;
771 TrUpdateNode (PARSEOP_DWORDCONST, Op);
772 Op->Asl.AmlOpcode = AML_RAW_DATA_DWORD;
777 TrUpdateNode (PARSEOP_QWORDCONST, Op);
778 Op->Asl.AmlOpcode = AML_RAW_DATA_QWORD;
784 OpcSetOptimalIntegerSize (Op);
785 TrUpdateNode (PARSEOP_INTEGER, Op);
789 Op->Asl.AmlLength = 0;
793 /*******************************************************************************
795 * FUNCTION: OpcAmlEvaluationWalk1
797 * PARAMETERS: ASL_WALK_CALLBACK
801 * DESCRIPTION: Descending callback for AML execution of constant subtrees
803 ******************************************************************************/
806 OpcAmlEvaluationWalk1 (
807 ACPI_PARSE_OBJECT *Op,
811 ACPI_WALK_STATE *WalkState = Context;
813 ACPI_PARSE_OBJECT *OutOp;
817 WalkState->Opcode = Op->Common.AmlOpcode;
818 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
820 /* Copy child pointer to Arg for compatibility with Interpreter */
824 Op->Common.Value.Arg = Op->Asl.Child;
827 /* Call AML dispatcher */
829 Status = AcpiDsExecBeginOp (WalkState, &OutOp);
830 if (ACPI_FAILURE (Status))
832 DbgPrint (ASL_PARSE_OUTPUT,
833 "%s Constant interpretation failed (1) - %s\n",
834 Op->Asl.ParseOpName, AcpiFormatException (Status));
841 /*******************************************************************************
843 * FUNCTION: OpcAmlEvaluationWalk2
845 * PARAMETERS: ASL_WALK_CALLBACK
849 * DESCRIPTION: Ascending callback for AML execution of constant subtrees
851 ******************************************************************************/
854 OpcAmlEvaluationWalk2 (
855 ACPI_PARSE_OBJECT *Op,
859 ACPI_WALK_STATE *WalkState = Context;
864 WalkState->Opcode = Op->Common.AmlOpcode;
865 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
867 /* Copy child pointer to Arg for compatibility with Interpreter */
871 Op->Common.Value.Arg = Op->Asl.Child;
874 /* Call AML dispatcher */
876 Status = AcpiDsExecEndOp (WalkState);
877 if (ACPI_FAILURE (Status))
879 DbgPrint (ASL_PARSE_OUTPUT,
880 "%s: Constant interpretation failed (2) - %s\n",
881 Op->Asl.ParseOpName, AcpiFormatException (Status));