Print this page
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/acpica/tables/tbfind.c
          +++ new/usr/src/common/acpica/components/tables/tbfind.c
   1    1  /******************************************************************************
   2    2   *
   3    3   * Module Name: tbfind   - find table
   4    4   *
   5    5   *****************************************************************************/
   6    6  
   7    7  /*
   8      - * Copyright (C) 2000 - 2011, Intel Corp.
        8 + * Copyright (C) 2000 - 2013, Intel Corp.
   9    9   * All rights reserved.
  10   10   *
  11   11   * Redistribution and use in source and binary forms, with or without
  12   12   * modification, are permitted provided that the following conditions
  13   13   * are met:
  14   14   * 1. Redistributions of source code must retain the above copyright
  15   15   *    notice, this list of conditions, and the following disclaimer,
  16   16   *    without modification.
  17   17   * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  18   18   *    substantially similar to the "NO WARRANTY" disclaimer below
↓ open down ↓ 60 lines elided ↑ open up ↑
  79   79      ACPI_STATUS             Status;
  80   80      ACPI_TABLE_HEADER       Header;
  81   81  
  82   82  
  83   83      ACPI_FUNCTION_TRACE (TbFindTable);
  84   84  
  85   85  
  86   86      /* Normalize the input strings */
  87   87  
  88   88      ACPI_MEMSET (&Header, 0, sizeof (ACPI_TABLE_HEADER));
  89      -    ACPI_STRNCPY (Header.Signature, Signature, ACPI_NAME_SIZE);
       89 +    ACPI_MOVE_NAME (Header.Signature, Signature);
  90   90      ACPI_STRNCPY (Header.OemId, OemId, ACPI_OEM_ID_SIZE);
  91   91      ACPI_STRNCPY (Header.OemTableId, OemTableId, ACPI_OEM_TABLE_ID_SIZE);
  92   92  
  93   93      /* Search for the table */
  94   94  
  95   95      for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i)
  96   96      {
  97   97          if (ACPI_MEMCMP (&(AcpiGbl_RootTableList.Tables[i].Signature),
  98   98                              Header.Signature, ACPI_NAME_SIZE))
  99   99          {
↓ open down ↓ 44 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX