nseval.c (199337) | nseval.c (200553) |
---|---|
1/******************************************************************************* 2 * 3 * Module Name: nseval - Object evaluation, includes control method execution 4 * 5 ******************************************************************************/ 6 7/****************************************************************************** 8 * --- 463 unchanged lines hidden (view full) --- 472 /* 473 * Get the parent node. We cheat by using the NextObject field 474 * of the method object descriptor. 475 */ 476 ParentNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, 477 MethodObj->Method.NextObject); 478 Type = AcpiNsGetType (ParentNode); 479 | 1/******************************************************************************* 2 * 3 * Module Name: nseval - Object evaluation, includes control method execution 4 * 5 ******************************************************************************/ 6 7/****************************************************************************** 8 * --- 463 unchanged lines hidden (view full) --- 472 /* 473 * Get the parent node. We cheat by using the NextObject field 474 * of the method object descriptor. 475 */ 476 ParentNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, 477 MethodObj->Method.NextObject); 478 Type = AcpiNsGetType (ParentNode); 479 |
480 /* 481 * Get the region handler and save it in the method object. We may need 482 * this if an operation region declaration causes a _REG method to be run. 483 * 484 * We can't do this in AcpiPsLinkModuleCode because 485 * AcpiGbl_RootNode->Object is NULL at PASS1. 486 */ 487 if ((Type == ACPI_TYPE_DEVICE) && ParentNode->Object) 488 { 489 MethodObj->Method.Extra.Handler = 490 ParentNode->Object->Device.Handler; 491 } 492 |
|
480 /* Must clear NextObject (AcpiNsAttachObject needs the field) */ 481 482 MethodObj->Method.NextObject = NULL; 483 484 /* Initialize the evaluation information block */ 485 486 ACPI_MEMSET (Info, 0, sizeof (ACPI_EVALUATE_INFO)); 487 Info->PrefixNode = ParentNode; --- 20 unchanged lines hidden (view full) --- 508 509 /* Execute the parent node as a control method */ 510 511 Status = AcpiNsEvaluate (Info); 512 513 ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "Executed module-level code at %p\n", 514 MethodObj->Method.AmlStart)); 515 | 493 /* Must clear NextObject (AcpiNsAttachObject needs the field) */ 494 495 MethodObj->Method.NextObject = NULL; 496 497 /* Initialize the evaluation information block */ 498 499 ACPI_MEMSET (Info, 0, sizeof (ACPI_EVALUATE_INFO)); 500 Info->PrefixNode = ParentNode; --- 20 unchanged lines hidden (view full) --- 521 522 /* Execute the parent node as a control method */ 523 524 Status = AcpiNsEvaluate (Info); 525 526 ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "Executed module-level code at %p\n", 527 MethodObj->Method.AmlStart)); 528 |
529 /* Delete a possible implicit return value (in slack mode) */ 530 531 if (Info->ReturnObject) 532 { 533 AcpiUtRemoveReference (Info->ReturnObject); 534 } 535 |
|
516 /* Detach the temporary method object */ 517 518 AcpiNsDetachObject (ParentNode); 519 520 /* Restore the original parent object */ 521 522 if (ParentObj) 523 { --- 15 unchanged lines hidden --- | 536 /* Detach the temporary method object */ 537 538 AcpiNsDetachObject (ParentNode); 539 540 /* Restore the original parent object */ 541 542 if (ParentObj) 543 { --- 15 unchanged lines hidden --- |