exresnte.c revision 69746
1 2/****************************************************************************** 3 * 4 * Module Name: amresnte - AML Interpreter object resolution 5 * $Revision: 25 $ 6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights 14 * reserved. 15 * 16 * 2. License 17 * 18 * 2.1. This is your license from Intel Corp. under its intellectual property 19 * rights. You may have additional license terms from the party that provided 20 * you this software, covering your right to use that party's intellectual 21 * property rights. 22 * 23 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 24 * copy of the source code appearing in this file ("Covered Code") an 25 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 26 * base code distributed originally by Intel ("Original Intel Code") to copy, 27 * make derivatives, distribute, use and display any portion of the Covered 28 * Code in any form, with the right to sublicense such rights; and 29 * 30 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 31 * license (with the right to sublicense), under only those claims of Intel 32 * patents that are infringed by the Original Intel Code, to make, use, sell, 33 * offer to sell, and import the Covered Code and derivative works thereof 34 * solely to the minimum extent necessary to exercise the above copyright 35 * license, and in no event shall the patent license extend to any additions 36 * to or modifications of the Original Intel Code. No other license or right 37 * is granted directly or by implication, estoppel or otherwise; 38 * 39 * The above copyright and patent license is granted only if the following 40 * conditions are met: 41 * 42 * 3. Conditions 43 * 44 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 45 * Redistribution of source code of any substantial portion of the Covered 46 * Code or modification with rights to further distribute source must include 47 * the above Copyright Notice, the above License, this list of Conditions, 48 * and the following Disclaimer and Export Compliance provision. In addition, 49 * Licensee must cause all Covered Code to which Licensee contributes to 50 * contain a file documenting the changes Licensee made to create that Covered 51 * Code and the date of any change. Licensee must include in that file the 52 * documentation of any changes made by any predecessor Licensee. Licensee 53 * must include a prominent statement that the modification is derived, 54 * directly or indirectly, from Original Intel Code. 55 * 56 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 57 * Redistribution of source code of any substantial portion of the Covered 58 * Code or modification without rights to further distribute source must 59 * include the following Disclaimer and Export Compliance provision in the 60 * 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 __AMRESNTE_C__ 119 120#include "acpi.h" 121#include "amlcode.h" 122#include "acparser.h" 123#include "acdispat.h" 124#include "acinterp.h" 125#include "acnamesp.h" 126#include "actables.h" 127#include "acevents.h" 128 129 130#define _COMPONENT INTERPRETER 131 MODULE_NAME ("amresnte") 132 133 134/******************************************************************************* 135 * 136 * FUNCTION: AcpiAmlResolveNodeToValue 137 * 138 * PARAMETERS: StackPtr - Pointer to a location on a stack that contains 139 * a pointer to an Node 140 * 141 * RETURN: Status 142 * 143 * DESCRIPTION: Resolve a ACPI_NAMESPACE_NODE (Node, 144 * A.K.A. a "direct name pointer") 145 * 146 * Note: for some of the data types, the pointer attached to the Node 147 * can be either a pointer to an actual internal object or a pointer into the 148 * AML stream itself. These types are currently: 149 * 150 * ACPI_TYPE_NUMBER 151 * ACPI_TYPE_STRING 152 * ACPI_TYPE_BUFFER 153 * ACPI_TYPE_MUTEX 154 * ACPI_TYPE_PACKAGE 155 * 156 ******************************************************************************/ 157 158ACPI_STATUS 159AcpiAmlResolveNodeToValue ( 160 ACPI_NAMESPACE_NODE **StackPtr, 161 ACPI_WALK_STATE *WalkState) 162 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; 171 BOOLEAN AttachedAmlPointer = FALSE; 172 UINT8 AmlOpcode = 0; 173 ACPI_INTEGER TempVal; 174 OBJECT_TYPE_INTERNAL ObjectType; 175 176 177 FUNCTION_TRACE ("AmlResolveEntryToValue"); 178 179 Node = *StackPtr; 180 181 182 /* 183 * The stack pointer is a "Direct name ptr", and points to a 184 * a ACPI_NAMESPACE_NODE (Node). Get the pointer that is attached to 185 * the Node. 186 */ 187 188 ValDesc = AcpiNsGetAttachedObject ((ACPI_HANDLE) Node); 189 EntryType = AcpiNsGetType ((ACPI_HANDLE) Node); 190 191 DEBUG_PRINT (TRACE_EXEC, 192 ("AmlResolveEntryToValue: Entry=%p ValDesc=%p Type=%X\n", 193 Node, ValDesc, EntryType)); 194 195 /* 196 * The ValDesc attached to the Node can be either: 197 * 1) An internal ACPI object 198 * 2) A pointer into the AML stream (into one of the ACPI system tables) 199 */ 200 201 if (AcpiTbSystemTablePointer (ValDesc)) 202 { 203 AttachedAmlPointer = TRUE; 204 AmlOpcode = *((UINT8 *) ValDesc); 205 AmlPointer = ((UINT8 *) ValDesc) + 1; 206 207 DEBUG_PRINT (TRACE_EXEC, 208 ("AmlResolveEntryToValue: Unparsed AML: %p Len=%X\n", 209 AmlOpcode, AmlPointer)); 210 } 211 212 213 /* 214 * Several EntryTypes do not require further processing, so 215 * we will return immediately 216 */ 217 /* Devices rarely have an attached object, return the Node 218 * and Method locals and arguments have a pseudo-Node 219 */ 220 if (EntryType == ACPI_TYPE_DEVICE || 221 (Node->Flags & (ANOBJ_METHOD_ARG | ANOBJ_METHOD_LOCAL))) 222 { 223 return_ACPI_STATUS (AE_OK); 224 } 225 226 if (!ValDesc) 227 { 228 DEBUG_PRINT (ACPI_ERROR, 229 ("AmlResolveEntryToValue: No object attached to node %p\n", 230 Node)); 231 return_ACPI_STATUS (AE_AML_NO_OPERAND); 232 } 233 234 /* 235 * Action is based on the type of the Node, which indicates the type 236 * of the attached object or pointer 237 */ 238 switch (EntryType) 239 { 240 241 case ACPI_TYPE_PACKAGE: 242 243 if (AttachedAmlPointer) 244 { 245 /* 246 * This means that the package initialization is not parsed 247 * -- should not happen 248 */ 249 DEBUG_PRINT (ACPI_ERROR, 250 ("AmlResolveEntryToValue: Unparsed Packages not supported!\n")); 251 return_ACPI_STATUS (AE_NOT_IMPLEMENTED); 252 } 253 254 /* ValDesc is an internal object in all cases by the time we get here */ 255 256 if (ACPI_TYPE_PACKAGE != ValDesc->Common.Type) 257 { 258 DEBUG_PRINT (ACPI_ERROR, 259 ("AmlResolveEntryToValue: Object not a package, type %X\n", 260 ValDesc->Common.Type)); 261 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 262 } 263 264 /* Return an additional reference to the object */ 265 266 ObjDesc = ValDesc; 267 AcpiCmAddReference (ObjDesc); 268 break; 269 270 271 case ACPI_TYPE_BUFFER: 272 273 if (AttachedAmlPointer) 274 { 275 /* 276 * This means that the buffer initialization is not parsed 277 * -- should not happen 278 */ 279 DEBUG_PRINT (ACPI_ERROR, 280 ("AmlResolveEntryToValue: Unparsed Buffers not supported!\n")); 281 return_ACPI_STATUS (AE_NOT_IMPLEMENTED); 282 } 283 284 /* ValDesc is an internal object in all cases by the time we get here */ 285 286 if (ACPI_TYPE_BUFFER != ValDesc->Common.Type) 287 { 288 DEBUG_PRINT (ACPI_ERROR, 289 ("AmlResolveEntryToValue: Object not a buffer, type %X\n", 290 ValDesc->Common.Type)); 291 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 292 } 293 294 /* Return an additional reference to the object */ 295 296 ObjDesc = ValDesc; 297 AcpiCmAddReference (ObjDesc); 298 break; 299 300 301 case ACPI_TYPE_STRING: 302 303 if (AttachedAmlPointer) 304 { 305 /* Allocate a new string object */ 306 307 ObjDesc = AcpiCmCreateInternalObject (ACPI_TYPE_STRING); 308 if (!ObjDesc) 309 { 310 return_ACPI_STATUS (AE_NO_MEMORY); 311 } 312 313 /* Init the internal object */ 314 315 ObjDesc->String.Pointer = (NATIVE_CHAR *) AmlPointer; 316 ObjDesc->String.Length = STRLEN (ObjDesc->String.Pointer); 317 } 318 319 else 320 { 321 if (ACPI_TYPE_STRING != ValDesc->Common.Type) 322 { 323 DEBUG_PRINT (ACPI_ERROR, 324 ("AmlResolveEntryToValue: Object not a string, type %X\n", 325 ValDesc->Common.Type)); 326 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 327 } 328 329 /* Return an additional reference to the object */ 330 331 ObjDesc = ValDesc; 332 AcpiCmAddReference (ObjDesc); 333 } 334 335 break; 336 337 338 case ACPI_TYPE_NUMBER: 339 340 DEBUG_PRINT (TRACE_EXEC, ("AmlResolveEntryToValue: case Number \n")); 341 342 /* 343 * The Node has an attached internal object, make sure that it's a 344 * number 345 */ 346 347 if (ACPI_TYPE_NUMBER != ValDesc->Common.Type) 348 { 349 DEBUG_PRINT (ACPI_ERROR, 350 ("AmlResolveToValue: Object not a Number, type %X\n", 351 ValDesc->Common.Type)); 352 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 353 } 354 355 /* Return an additional reference to the object */ 356 357 ObjDesc = ValDesc; 358 AcpiCmAddReference (ObjDesc); 359 break; 360 361 362 case INTERNAL_TYPE_DEF_FIELD: 363 364 /* 365 * TBD: [Investigate] Is this the correct solution? 366 * 367 * This section was extended to convert to generic buffer if 368 * the return length is greater than 32 bits, but still allows 369 * for returning a type Number for smaller values because the 370 * caller can then apply arithmetic operators on those fields. 371 * 372 * XXX - Implementation limitation: Fields are implemented as type 373 * XXX - Number, but they really are supposed to be type Buffer. 374 * XXX - The two are interchangeable only for lengths <= 32 bits. 375 */ 376 if(ValDesc->Field.Length > 32) 377 { 378 ObjectType = ACPI_TYPE_BUFFER; 379 } 380 else 381 { 382 ObjectType = ACPI_TYPE_NUMBER; 383 } 384 385 /* 386 * Create the destination buffer object and the buffer space. 387 */ 388 ObjDesc = AcpiCmCreateInternalObject (ObjectType); 389 if (!ObjDesc) 390 { 391 return_ACPI_STATUS (AE_NO_MEMORY); 392 } 393 394 /* 395 * Fill in the object specific details 396 */ 397 if (ACPI_TYPE_BUFFER == ObjectType) 398 { 399 ObjDesc->Buffer.Pointer = AcpiCmCallocate (ValDesc->Field.Length); 400 if (!ObjDesc->Buffer.Pointer) 401 { 402 AcpiCmRemoveReference(ObjDesc); 403 return_ACPI_STATUS (AE_NO_MEMORY); 404 } 405 406 ObjDesc->Buffer.Length = ValDesc->Field.Length; 407 408 Status = AcpiAmlAccessNamedField (ACPI_READ, (ACPI_HANDLE) Node, 409 ObjDesc->Buffer.Pointer, ObjDesc->Buffer.Length); 410 411 if (ACPI_FAILURE (Status)) 412 { 413 return_ACPI_STATUS (Status); 414 } 415 } 416 else 417 { 418 Status = AcpiAmlAccessNamedField (ACPI_READ, (ACPI_HANDLE) Node, 419 &TempVal, sizeof (TempVal)); 420 421 if (ACPI_FAILURE (Status)) 422 { 423 return_ACPI_STATUS (Status); 424 } 425 426 ObjDesc->Number.Value = TempVal; 427 } 428 429 430 DEBUG_PRINT (TRACE_EXEC, 431 ("AmlResolveEntryToValue: DefField Entry=%p ValDesc=%p Type=%X\n", 432 Node, ValDesc, EntryType)); 433 break; 434 435 436 case INTERNAL_TYPE_BANK_FIELD: 437 438 if (AttachedAmlPointer) 439 { 440 DEBUG_PRINT (ACPI_ERROR, 441 ("AmlResolveEntryToValue: BankField cannot be an Aml ptr\n")); 442 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 443 } 444 445 if (INTERNAL_TYPE_BANK_FIELD != ValDesc->Common.Type) 446 { 447 DEBUG_PRINT (ACPI_ERROR, ( 448 "AmlResolveToValue: Object not a BankField, type %X\n", 449 ValDesc->Common.Type)); 450 451 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 452 } 453 454 455 /* Get the global lock if needed */ 456 457 ObjDesc = (ACPI_OPERAND_OBJECT *) *StackPtr; 458 Locked = AcpiAmlAcquireGlobalLock (ObjDesc->FieldUnit.LockRule); 459 460 /* Set Index value to select proper Data register */ 461 /* perform the update */ 462 463 Status = AcpiAmlAccessNamedField (ACPI_WRITE, 464 ValDesc->BankField.BankSelect, &ValDesc->BankField.Value, 465 sizeof (ValDesc->BankField.Value)); 466 467 AcpiAmlReleaseGlobalLock (Locked); 468 469 470 if (ACPI_FAILURE (Status)) 471 { 472 return_ACPI_STATUS (Status); 473 } 474 475 /* Read Data value */ 476 477 Status = AcpiAmlAccessNamedField (ACPI_READ, 478 (ACPI_HANDLE) ValDesc->BankField.Container, 479 &TempVal, sizeof (TempVal)); 480 if (ACPI_FAILURE (Status)) 481 { 482 return_ACPI_STATUS (Status); 483 } 484 485 /* Create an object for the result */ 486 487 ObjDesc = AcpiCmCreateInternalObject (ACPI_TYPE_NUMBER); 488 if (!ObjDesc) 489 { 490 return_ACPI_STATUS (AE_NO_MEMORY); 491 } 492 493 ObjDesc->Number.Value = TempVal; 494 break; 495 496 497 case INTERNAL_TYPE_INDEX_FIELD: 498 499 if (AttachedAmlPointer) 500 { 501 DEBUG_PRINT (ACPI_ERROR, ("AmlResolveEntryToValue: Internal - IndexField cannot be an Aml ptr\n")); 502 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 503 } 504 505 if (INTERNAL_TYPE_INDEX_FIELD != ValDesc->Common.Type) 506 { 507 DEBUG_PRINT (ACPI_ERROR, ( 508 "AmlResolveToValue: Object not an IndexField, type %X\n", 509 ValDesc->Common.Type)); 510 511 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 512 } 513 514 515 /* Set Index value to select proper Data register */ 516 /* Get the global lock if needed */ 517 518 ObjDesc = (ACPI_OPERAND_OBJECT *) *StackPtr; 519 Locked = AcpiAmlAcquireGlobalLock (ObjDesc->FieldUnit.LockRule); 520 521 /* Perform the update */ 522 523 Status = AcpiAmlAccessNamedField (ACPI_WRITE, 524 ValDesc->IndexField.Index, &ValDesc->IndexField.Value, 525 sizeof (ValDesc->IndexField.Value)); 526 527 AcpiAmlReleaseGlobalLock (Locked); 528 529 if (ACPI_FAILURE (Status)) 530 { 531 return_ACPI_STATUS (Status); 532 } 533 534 /* Read Data value */ 535 536 Status = AcpiAmlAccessNamedField (ACPI_READ, ValDesc->IndexField.Data, 537 &TempVal, sizeof (TempVal)); 538 if (ACPI_FAILURE (Status)) 539 { 540 return_ACPI_STATUS (Status); 541 } 542 543 /* Create an object for the result */ 544 545 ObjDesc = AcpiCmCreateInternalObject (ACPI_TYPE_NUMBER); 546 if (!ObjDesc) 547 { 548 return_ACPI_STATUS (AE_NO_MEMORY); 549 } 550 551 ObjDesc->Number.Value = TempVal; 552 break; 553 554 555 case ACPI_TYPE_FIELD_UNIT: 556 557 if (AttachedAmlPointer) 558 { 559 DEBUG_PRINT (ACPI_ERROR, 560 ("AmlResolveEntryToValue: FieldUnit cannot be an Aml ptr\n")); 561 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 562 } 563 564 if (ValDesc->Common.Type != (UINT8) EntryType) 565 { 566 DEBUG_PRINT (ACPI_ERROR, ( 567 "AmlResolveToValue: Object type %X not same as EntryType %X\n", 568 ValDesc->Common.Type, EntryType)); 569 570 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 571 break; 572 } 573 574 /* Create object for result */ 575 576 ObjDesc = AcpiCmCreateInternalObject (ACPI_TYPE_ANY); 577 if (!ObjDesc) 578 { 579 return_ACPI_STATUS (AE_NO_MEMORY); 580 } 581 582 Status = AcpiAmlGetFieldUnitValue (ValDesc, ObjDesc); 583 if (ACPI_FAILURE (Status)) 584 { 585 AcpiCmRemoveReference (ObjDesc); 586 return_ACPI_STATUS (Status); 587 } 588 589 break; 590 591 592 /* 593 * For these objects, just return the object attached to the Node 594 */ 595 596 case ACPI_TYPE_MUTEX: 597 case ACPI_TYPE_METHOD: 598 case ACPI_TYPE_POWER: 599 case ACPI_TYPE_PROCESSOR: 600 case ACPI_TYPE_THERMAL: 601 case ACPI_TYPE_EVENT: 602 case ACPI_TYPE_REGION: 603 604 605 /* Return an additional reference to the object */ 606 607 ObjDesc = ValDesc; 608 AcpiCmAddReference (ObjDesc); 609 break; 610 611 612 /* TYPE_Any is untyped, and thus there is no object associated with it */ 613 614 case ACPI_TYPE_ANY: 615 616 DEBUG_PRINT (ACPI_ERROR, 617 ("AmlResolveEntryToValue: Untyped entry %p, no attached object!\n", 618 Node)); 619 620 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); /* Cannot be AE_TYPE */ 621 break; 622 623 624 /* 625 * The only named references allowed are named constants 626 * 627 * e.g. Name (\OSFL, Ones) 628 */ 629 case INTERNAL_TYPE_REFERENCE: 630 631 switch (ValDesc->Reference.OpCode) 632 { 633 634 case AML_ZERO_OP: 635 636 TempVal = 0; 637 break; 638 639 640 case AML_ONE_OP: 641 642 TempVal = 1; 643 break; 644 645 646 case AML_ONES_OP: 647 648 TempVal = ACPI_INTEGER_MAX; 649 break; 650 651 652 default: 653 654 DEBUG_PRINT (ACPI_ERROR, 655 ("AmlResolveToValue/Number: Unsupported reference opcode %X\n", 656 ValDesc->Reference.OpCode)); 657 658 return_ACPI_STATUS (AE_AML_BAD_OPCODE); 659 } 660 661 /* Create object for result */ 662 663 ObjDesc = AcpiCmCreateInternalObject (ACPI_TYPE_NUMBER); 664 if (!ObjDesc) 665 { 666 return_ACPI_STATUS (AE_NO_MEMORY); 667 } 668 669 ObjDesc->Number.Value = TempVal; 670 671 /* Truncate value if we are executing from a 32-bit ACPI table */ 672 673 AcpiAmlTruncateFor32bitTable (ObjDesc, WalkState); 674 break; 675 676 677 /* Default case is for unknown types */ 678 679 default: 680 681 DEBUG_PRINT (ACPI_ERROR, 682 ("AmlResolveEntryToValue: Node %p - Unknown object type %X\n", 683 Node, EntryType)); 684 685 return_ACPI_STATUS (AE_AML_OPERAND_TYPE); 686 687 } /* switch (EntryType) */ 688 689 690 /* Put the object descriptor on the stack */ 691 692 *StackPtr = (void *) ObjDesc; 693 694 return_ACPI_STATUS (Status); 695} 696 697 698