X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FReadPmc.c;h=b6e0fe64983194ed18d2c90bfa72958d5eae52ee;hp=432c0139f9e08a0550aa6c479088bd476f7ad057;hb=030cd1a2e95018683638462e9fcfa2d204aaff33;hpb=42eedea958591087603bbacd1c2227d2494026af diff --git a/MdePkg/Library/BaseLib/Ia32/ReadPmc.c b/MdePkg/Library/BaseLib/Ia32/ReadPmc.c index 432c0139f9..b6e0fe6498 100644 --- a/MdePkg/Library/BaseLib/Ia32/ReadPmc.c +++ b/MdePkg/Library/BaseLib/Ia32/ReadPmc.c @@ -1,7 +1,7 @@ /** @file AsmReadPmc function - Copyright (c) 2006 - 2007, Intel Corporation
+ Copyright (c) 2006 - 2008, 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 @@ -12,16 +12,11 @@ **/ -// -// Include common header file for this module. -// - - /** Reads the current value of a Performance Counter (PMC). Reads and returns the current value of performance counter specified by - Index. This function is only available on IA-32 and X64. + Index. This function is only available on IA-32 and x64. @param Index The 32-bit Performance Counter index to read. @@ -31,11 +26,11 @@ UINT64 EFIAPI AsmReadPmc ( - IN UINT32 PmcIndex + IN UINT32 Index ) { _asm { - mov ecx, PmcIndex + mov ecx, Index rdpmc } }