exresnte.c (67754) | exresnte.c (69450) |
---|---|
1 2/****************************************************************************** 3 * 4 * Module Name: amresnte - AML Interpreter object resolution | 1 2/****************************************************************************** 3 * 4 * Module Name: amresnte - AML Interpreter object resolution |
5 * $Revision: 23 $ | 5 * $Revision: 24 $ |
6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights --- 138 unchanged lines hidden (view full) --- 152 * ACPI_TYPE_BUFFER 153 * ACPI_TYPE_MUTEX 154 * ACPI_TYPE_PACKAGE 155 * 156 ******************************************************************************/ 157 158ACPI_STATUS 159AcpiAmlResolveNodeToValue ( | 6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights --- 138 unchanged lines hidden (view full) --- 152 * ACPI_TYPE_BUFFER 153 * ACPI_TYPE_MUTEX 154 * ACPI_TYPE_PACKAGE 155 * 156 ******************************************************************************/ 157 158ACPI_STATUS 159AcpiAmlResolveNodeToValue ( |
160 ACPI_NAMESPACE_NODE **StackPtr) | 160 ACPI_NAMESPACE_NODE **StackPtr, 161 ACPI_WALK_STATE *WalkState) 162 |
161{ 162 ACPI_STATUS Status = AE_OK; 163 ACPI_OPERAND_OBJECT *ValDesc = NULL; 164 ACPI_OPERAND_OBJECT *ObjDesc = NULL; 165 ACPI_NAMESPACE_NODE *Node; 166 UINT8 *AmlPointer = NULL; 167 OBJECT_TYPE_INTERNAL EntryType; 168 BOOLEAN Locked; --- 470 unchanged lines hidden (view full) --- 639 case AML_ONE_OP: 640 641 TempVal = 1; 642 break; 643 644 645 case AML_ONES_OP: 646 | 163{ 164 ACPI_STATUS Status = AE_OK; 165 ACPI_OPERAND_OBJECT *ValDesc = NULL; 166 ACPI_OPERAND_OBJECT *ObjDesc = NULL; 167 ACPI_NAMESPACE_NODE *Node; 168 UINT8 *AmlPointer = NULL; 169 OBJECT_TYPE_INTERNAL EntryType; 170 BOOLEAN Locked; --- 470 unchanged lines hidden (view full) --- 641 case AML_ONE_OP: 642 643 TempVal = 1; 644 break; 645 646 647 case AML_ONES_OP: 648 |
647 TempVal = ACPI_UINT32_MAX; | 649 TempVal = ACPI_INTEGER_MAX; |
648 break; 649 650 651 default: 652 653 DEBUG_PRINT (ACPI_ERROR, 654 ("AmlResolveToValue/Number: Unsupported reference opcode %X\n", 655 ValDesc->Reference.OpCode)); --- 6 unchanged lines hidden (view full) --- 662 ObjDesc = AcpiCmCreateInternalObject (ACPI_TYPE_NUMBER); 663 if (!ObjDesc) 664 { 665 return_ACPI_STATUS (AE_NO_MEMORY); 666 } 667 668 ObjDesc->Number.Value = TempVal; 669 | 650 break; 651 652 653 default: 654 655 DEBUG_PRINT (ACPI_ERROR, 656 ("AmlResolveToValue/Number: Unsupported reference opcode %X\n", 657 ValDesc->Reference.OpCode)); --- 6 unchanged lines hidden (view full) --- 664 ObjDesc = AcpiCmCreateInternalObject (ACPI_TYPE_NUMBER); 665 if (!ObjDesc) 666 { 667 return_ACPI_STATUS (AE_NO_MEMORY); 668 } 669 670 ObjDesc->Number.Value = TempVal; 671 |
672 /* Truncate value if we are executing from a 32-bit ACPI table */ 673 674 AcpiAmlTruncateFor32bitTable (ObjDesc, WalkState); |
|
670 break; 671 672 673 /* Default case is for unknown types */ 674 675 default: 676 677 DEBUG_PRINT (ACPI_ERROR, --- 16 unchanged lines hidden --- | 675 break; 676 677 678 /* Default case is for unknown types */ 679 680 default: 681 682 DEBUG_PRINT (ACPI_ERROR, --- 16 unchanged lines hidden --- |