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