From 831ff057d7bbb269cbdf9ab77079492a11ca0aa0 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Wed, 16 Mar 2011 00:38:17 +0000 Subject: Add support for the GetTimerValue() to the CPU AP for NT32. This also requires some performance counter APIs to be added to the WinNtThunk Protocol. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11403 6f19259b-4bc3-4df7-8a09-765794883524 --- Nt32Pkg/Include/Protocol/WinNtThunk.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'Nt32Pkg/Include') diff --git a/Nt32Pkg/Include/Protocol/WinNtThunk.h b/Nt32Pkg/Include/Protocol/WinNtThunk.h index 5a5d8290d2..fd7defd2fd 100644 --- a/Nt32Pkg/Include/Protocol/WinNtThunk.h +++ b/Nt32Pkg/Include/Protocol/WinNtThunk.h @@ -1,6 +1,6 @@ /**@file -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2011, 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 @@ -1104,6 +1104,19 @@ BOOL (WINAPI *WinNtFreeLibrary) ( HANDLE ModHandle ); +typedef +WINBASEAPI +BOOL +(WINAPI *WinNtQueryPerformanceCounter) ( + LARGE_INTEGER *PerformanceCount + ); + +typedef +WINBASEAPI +BOOL +(WINAPI *WinNtQueryPerformanceFrequency) ( + LARGE_INTEGER *Frequency + ); // // // @@ -1269,7 +1282,10 @@ typedef struct { WinNtGetProcessHeap GetProcessHeap; WinNtHeapAlloc HeapAlloc; WinNtHeapFree HeapFree; - + + WinNtQueryPerformanceCounter QueryPerformanceCounter; + WinNtQueryPerformanceFrequency QueryPerformanceFrequency; + } EFI_WIN_NT_THUNK_PROTOCOL; extern EFI_GUID gEfiWinNtThunkProtocolGuid; -- cgit v1.2.3