X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EmulatorPkg%2FPlatformSmbiosDxe%2FPlatformSmbiosDxe.c;h=676d324e6b94192914a769c56b4b83d54e00de1d;hb=79e4f2a56ac7cee477c2f84ff65f766814cc1836;hp=123e090ed0c956cbc4ff397da7227543a71940f5;hpb=a07533fab100db41c04d9044503438ac00039d82;p=mirror_edk2.git diff --git a/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c b/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c index 123e090ed0..676d324e6b 100644 --- a/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c +++ b/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c @@ -66,10 +66,10 @@ CreatePlatformSmbiosMemoryRecords ( while ((HobPtr.Raw = GetNextHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, HobPtr.Raw)) != NULL) { if (HobPtr.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) { gSmbiosType19Template.ExtendedStartingAddress = HobPtr.ResourceDescriptor->PhysicalStart; - gSmbiosType19Template.ExtendedEndingAddress = - HobPtr.ResourceDescriptor->PhysicalStart + + gSmbiosType19Template.ExtendedEndingAddress = + HobPtr.ResourceDescriptor->PhysicalStart + HobPtr.ResourceDescriptor->ResourceLength - 1; - + SmbiosLibCreateEntry ((SMBIOS_STRUCTURE *)&gSmbiosType19Template, NULL); } HobPtr.Raw = GET_NEXT_HOB (HobPtr); @@ -97,7 +97,7 @@ PlatfomrSmbiosDriverEntryPoint ( EFI_SMBIOS_HANDLE SmbiosHandle; SMBIOS_STRUCTURE_POINTER Smbios; - // Phase 0 - Patch table to make SMBIOS 2.7 structures smaller to conform + // Phase 0 - Patch table to make SMBIOS 2.7 structures smaller to conform // to an early version of the specification. // Phase 1 - Initialize SMBIOS tables from template @@ -112,18 +112,18 @@ PlatfomrSmbiosDriverEntryPoint ( Smbios.Type0->BiosSize = (UINT8)DivU64x32 (FixedPcdGet64 (PcdEmuFirmwareFdSize), 64*1024) - 1; SmbiosLibUpdateUnicodeString ( - SmbiosHandle, - Smbios.Type0->BiosVersion, + SmbiosHandle, + Smbios.Type0->BiosVersion, (CHAR16 *) PcdGetPtr (PcdFirmwareVersionString) ); SmbiosLibUpdateUnicodeString ( - SmbiosHandle, - Smbios.Type0->BiosReleaseDate, + SmbiosHandle, + Smbios.Type0->BiosReleaseDate, (CHAR16 *) PcdGetPtr (PcdFirmwareReleaseDateString) ); } - // Phase 3 - Create tables from scratch + // Phase 3 - Create tables from scratch // Create Type 13 record from EFI Variables // Do we need this record for EFI as the info is available from EFI varaibles