summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/AcpiPlatformDxe/Qemu.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/AcpiPlatformDxe/Qemu.c')
-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);