diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-14 08:59:32 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-14 08:59:32 +0000 |
commit | 0b94e31981fde83116598dc7a2c8a346d46fd3cf (patch) | |
tree | b5fe86e1cc9555b1a45434403fa36d7d2331187e /Nt32Pkg/TimerDxe | |
parent | 5f300691d0ef724c1580924da6ba6750794d918e (diff) | |
download | edk2-0b94e31981fde83116598dc7a2c8a346d46fd3cf.tar.gz edk2-0b94e31981fde83116598dc7a2c8a346d46fd3cf.tar.bz2 edk2-0b94e31981fde83116598dc7a2c8a346d46fd3cf.zip |
Fix ICC building issue for Nt32 platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6110 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/TimerDxe')
-rw-r--r-- | Nt32Pkg/TimerDxe/Timer.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Nt32Pkg/TimerDxe/Timer.c b/Nt32Pkg/TimerDxe/Timer.c index fd75c160c4..8eb4865a83 100644 --- a/Nt32Pkg/TimerDxe/Timer.c +++ b/Nt32Pkg/TimerDxe/Timer.c @@ -536,7 +536,9 @@ Returns: EFI_STATUS Status;
UINTN Result;
EFI_HANDLE Handle;
-
+ EFI_HANDLE hSourceProcessHandle;
+ EFI_HANDLE hSourceHandle;
+ EFI_HANDLE hTargetProcessHandle;
//
// Make sure the Timer Architectural Protocol is not already installed in the system
//
@@ -545,16 +547,19 @@ Returns: //
// Get the CPU Architectural Protocol instance
//
- Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, &mCpu);
+ Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, (VOID**)&mCpu);
ASSERT_EFI_ERROR (Status);
//
// Get our handle so the timer tick thread can suspend
//
+ hSourceProcessHandle = gWinNt->GetCurrentProcess ();
+ hSourceHandle = gWinNt->GetCurrentThread ();
+ hTargetProcessHandle = gWinNt->GetCurrentProcess ();
Result = gWinNt->DuplicateHandle (
- gWinNt->GetCurrentProcess (),
- gWinNt->GetCurrentThread (),
- gWinNt->GetCurrentProcess (),
+ hSourceProcessHandle,
+ hSourceHandle,
+ hTargetProcessHandle,
&mNtMainThreadHandle,
0,
FALSE,
|