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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**@file
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
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;
|
||||
|
Reference in New Issue
Block a user