summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/AcpiPlatformDxe
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-01 17:55:00 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-01 17:55:00 +0000
commit75ccc2b2111a318d25aae6df9d17590f0c04e814 (patch)
tree6e0d4aeccba662bb044f35530b58ff4ce0331f3b /OvmfPkg/AcpiPlatformDxe
parent1fd376d979221e9765dbec215916f5a6ab92879f (diff)
downloadedk2-75ccc2b2111a318d25aae6df9d17590f0c04e814.tar.gz
edk2-75ccc2b2111a318d25aae6df9d17590f0c04e814.tar.bz2
edk2-75ccc2b2111a318d25aae6df9d17590f0c04e814.zip
OvmfPkg/AcpiPlatformDxe: Fix VS2010 build issue
Reported-by: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13425 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/AcpiPlatformDxe')
-rw-r--r--OvmfPkg/AcpiPlatformDxe/Qemu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/OvmfPkg/AcpiPlatformDxe/Qemu.c b/OvmfPkg/AcpiPlatformDxe/Qemu.c
index e483856dca..f7736c2b71 100644
--- a/OvmfPkg/AcpiPlatformDxe/Qemu.c
+++ b/OvmfPkg/AcpiPlatformDxe/Qemu.c
@@ -82,13 +82,13 @@ QemuInstallAcpiMadtTable (
for (Loop = 1; Loop < Count; Loop++) {
LocalApic->Type = EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC;
LocalApic->Length = sizeof (*LocalApic);
- LocalApic->AcpiProcessorId = Loop;
- LocalApic->ApicId = Loop;
+ LocalApic->AcpiProcessorId = (UINT8) Loop;
+ LocalApic->ApicId = (UINT8) Loop;
LocalApic->Flags = 1;
LocalApic++;
}
- Hdr->Length = NewBufferSize;
+ Hdr->Length = (UINT32) NewBufferSize;
Status = InstallAcpiTable (AcpiProtocol, Hdr, NewBufferSize, TableKey);