]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg ACPI MADT: Make processor IDs zero based
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 30 May 2012 23:15:42 +0000 (23:15 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 30 May 2012 23:15:42 +0000 (23:15 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13386 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/AcpiTables/Madt.aslc

index e0e07a9390158abd0ed04dd18135b07fb82fffc7..f5b71a6e0ca943a590e057d09c87aef96553fbfb 100644 (file)
@@ -1,19 +1,19 @@
 /** @file\r
   MADT Table\r
 \r
-  This file contains a structure definition for the ACPI 1.0 Multiple APIC \r
-  Description Table (MADT).  \r
-  \r
-  Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  This file contains a structure definition for the ACPI 1.0 Multiple APIC\r
+  Description Table (MADT).\r
+\r
+  Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials are\r
   licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
-  \r
+\r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-**/ \r
+**/\r
 \r
 #include <IndustryStandard/Acpi.h>\r
 \r
@@ -79,12 +79,12 @@ EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE Madt = {
   // Checksum will be updated at runtime\r
   //\r
   0x00,\r
-  \r
+\r
   //\r
   // It is expected that these values will be programmed at runtime\r
   //\r
   ' ', ' ', ' ', ' ', ' ', ' ',\r
-  \r
+\r
   0,\r
   EFI_ACPI_OEM_MADT_REVISION,\r
   0,\r
@@ -95,14 +95,14 @@ EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE Madt = {
   //\r
   EFI_ACPI_LOCAL_APIC_ADDRESS,\r
   EFI_ACPI_1_0_MULTIPLE_APIC_FLAGS,\r
-  \r
+\r
   //\r
   // Processor Local APIC Structure\r
   //\r
 \r
   EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC,                        // Type\r
   sizeof (EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC_STRUCTURE),     // Length\r
-  0x01,                                                     // Processor ID\r
+  0x00,                                                     // Processor ID\r
   0x00,                                                     // Local APIC ID\r
   0x00000001,                                               // Flags - Enabled by default\r
 \r
@@ -148,7 +148,7 @@ ReferenceAcpiTable (
   )\r
 {\r
   //\r
-  // Reference the table being generated to prevent the optimizer from removing the \r
+  // Reference the table being generated to prevent the optimizer from removing the\r
   // data structure from the exeutable\r
   //\r
   return (VOID*)&Madt;\r