X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Nt32Pkg%2FCpuRuntimeDxe%2FCpu.c;h=9e7dfbb29fbaabd3d06689676daf8815608e6ac7;hb=d967d6d96fc18d7a53d32223f5813b12cda19e8d;hp=bcce412a337d82dc2a5b7775be7b9878669f84dd;hpb=831ff057d7bbb269cbdf9ab77079492a11ca0aa0;p=mirror_edk2.git diff --git a/Nt32Pkg/CpuRuntimeDxe/Cpu.c b/Nt32Pkg/CpuRuntimeDxe/Cpu.c index bcce412a33..9e7dfbb29f 100644 --- a/Nt32Pkg/CpuRuntimeDxe/Cpu.c +++ b/Nt32Pkg/CpuRuntimeDxe/Cpu.c @@ -1,6 +1,6 @@ /**@file -Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
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 @@ -327,7 +327,7 @@ Returns: return EFI_INVALID_PARAMETER; } - gWinNt->QueryPerformanceCounter (TimerValue); + gWinNt->QueryPerformanceCounter ((LARGE_INTEGER *)TimerValue); if (TimerPeriod != NULL) { *TimerPeriod = mTimerPeriod; @@ -402,7 +402,7 @@ LogSmbiosData ( EFI_STATUS Status; EFI_SMBIOS_HANDLE SmbiosHandle; - SmbiosHandle = 0; + SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED; Status = Smbios->Add ( Smbios, NULL, @@ -467,7 +467,7 @@ Returns: ASSERT (CpuVerStrLen <= SMBIOS_STRING_MAX_LENGTH); - TotalSize = sizeof(SMBIOS_TABLE_TYPE4) + CpuVerStrLen + 1 + 1; + TotalSize = (UINT32)(sizeof(SMBIOS_TABLE_TYPE4) + CpuVerStrLen + 1 + 1); SmbiosRecord = AllocatePool(TotalSize); ZeroMem(SmbiosRecord, TotalSize); @@ -532,7 +532,7 @@ Returns: // // Retrieve the frequency of the performance counter in Hz. // - gWinNt->QueryPerformanceFrequency (&Frequency); + gWinNt->QueryPerformanceFrequency ((LARGE_INTEGER *)&Frequency); // // Convert frequency in Hz to a clock period in femtoseconds.