OvmfPkg ACPI MADT: Make processor IDs zero based

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
This commit is contained in:
jljusten 2012-05-30 23:15:42 +00:00
parent 522203de37
commit 54235984ee
1 changed files with 11 additions and 11 deletions

View File

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