Print this page
update to acpica-unix2-20140114
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/acpica/dispatcher/dsargs.c
          +++ new/usr/src/common/acpica/components/dispatcher/dsargs.c
   1    1  /******************************************************************************
   2    2   *
   3    3   * Module Name: dsargs - Support for execution of dynamic arguments for static
   4    4   *                       objects (regions, fields, buffer fields, etc.)
   5    5   *
   6    6   *****************************************************************************/
   7    7  
   8    8  /*
   9      - * Copyright (C) 2000 - 2011, Intel Corp.
        9 + * Copyright (C) 2000 - 2014, Intel Corp.
  10   10   * All rights reserved.
  11   11   *
  12   12   * Redistribution and use in source and binary forms, with or without
  13   13   * modification, are permitted provided that the following conditions
  14   14   * are met:
  15   15   * 1. Redistributions of source code must retain the above copyright
  16   16   *    notice, this list of conditions, and the following disclaimer,
  17   17   *    without modification.
  18   18   * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  19   19   *    substantially similar to the "NO WARRANTY" disclaimer below
↓ open down ↓ 397 lines elided ↑ open up ↑
 417  417  
 418  418      Node = ObjDesc->Region.Node;
 419  419  
 420  420      ACPI_DEBUG_EXEC (AcpiUtDisplayInitPathname (ACPI_TYPE_REGION, Node, NULL));
 421  421  
 422  422      ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%4.4s] OpRegion Arg Init at AML %p\n",
 423  423          AcpiUtGetNodeName (Node), ExtraDesc->Extra.AmlStart));
 424  424  
 425  425      /* Execute the argument AML */
 426  426  
 427      -    Status = AcpiDsExecuteArguments (Node, Node->Parent,
      427 +    Status = AcpiDsExecuteArguments (Node, ExtraDesc->Extra.ScopeNode,
 428  428                  ExtraDesc->Extra.AmlLength, ExtraDesc->Extra.AmlStart);
      429 +    if (ACPI_FAILURE (Status))
      430 +    {
      431 +        return_ACPI_STATUS (Status);
      432 +    }
      433 +
      434 +    Status = AcpiUtAddAddressRange (ObjDesc->Region.SpaceId,
      435 +                 ObjDesc->Region.Address, ObjDesc->Region.Length,
      436 +                 Node);
 429  437      return_ACPI_STATUS (Status);
 430  438  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX