diff options
author | Chen Fan <chen.fan.fnst@cn.fujitsu.com> | 2014-07-31 15:45:13 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-07-31 15:45:13 +0000 |
commit | f9032449e84e8d85ee1af02f0ddc0c2880446cac (patch) | |
tree | 2cf8b8e378aa03d9579f71f2a26db444326cbf95 /EmulatorPkg/CpuRuntimeDxe | |
parent | e143c9e30c170cb49d287ab86a4478d926b99bf7 (diff) | |
download | edk2-platforms-f9032449e84e8d85ee1af02f0ddc0c2880446cac.tar.xz |
EmulatorPkg/Mpservice: Remove addressof operator
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15728 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmulatorPkg/CpuRuntimeDxe')
-rw-r--r-- | EmulatorPkg/CpuRuntimeDxe/MpService.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/EmulatorPkg/CpuRuntimeDxe/MpService.c b/EmulatorPkg/CpuRuntimeDxe/MpService.c index 238ecc6113..9ce23c0898 100644 --- a/EmulatorPkg/CpuRuntimeDxe/MpService.c +++ b/EmulatorPkg/CpuRuntimeDxe/MpService.c @@ -440,9 +440,9 @@ CpuMpServicesStartupAllAps ( if (ProcessorData->State == CPU_STATE_IDLE) {
gMPSystem.StartCount++;
- gThread->MutexLock (&ProcessorData->StateLock);
+ gThread->MutexLock (ProcessorData->StateLock);
ProcessorData->State = APInitialState;
- gThread->MutexUnlock (&ProcessorData->StateLock);
+ gThread->MutexUnlock (ProcessorData->StateLock);
if (SingleThread) {
APInitialState = CPU_STATE_BLOCKED;
@@ -512,9 +512,9 @@ CpuMpServicesStartupAllAps ( if (SingleThread) {
Status = GetNextBlockedNumber (&NextNumber);
if (!EFI_ERROR (Status)) {
- gThread->MutexLock (&gMPSystem.ProcessorData[NextNumber].StateLock);
+ gThread->MutexLock (gMPSystem.ProcessorData[NextNumber].StateLock);
gMPSystem.ProcessorData[NextNumber].State = CPU_STATE_READY;
- gThread->MutexUnlock (&gMPSystem.ProcessorData[NextNumber].StateLock);
+ gThread->MutexUnlock (gMPSystem.ProcessorData[NextNumber].StateLock);
}
}
@@ -699,14 +699,14 @@ CpuMpServicesStartupThisAP ( // Blocking
while (TRUE) {
- gThread->MutexLock (&gMPSystem.ProcessorData[ProcessorNumber].StateLock);
+ gThread->MutexLock (gMPSystem.ProcessorData[ProcessorNumber].StateLock);
if (gMPSystem.ProcessorData[ProcessorNumber].State == CPU_STATE_FINISHED) {
gMPSystem.ProcessorData[ProcessorNumber].State = CPU_STATE_IDLE;
- gThread->MutexUnlock (&gMPSystem.ProcessorData[ProcessorNumber].StateLock);
+ gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock);
break;
}
- gThread->MutexUnlock (&gMPSystem.ProcessorData[ProcessorNumber].StateLock);
+ gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock);
if ((TimeoutInMicroseconds != 0) && (Timeout < 0)) {
return EFI_TIMEOUT;
@@ -865,7 +865,7 @@ CpuMpServicesEnableDisableAP ( return EFI_UNSUPPORTED;
}
- gThread->MutexLock (&gMPSystem.ProcessorData[ProcessorNumber].StateLock);
+ gThread->MutexLock (gMPSystem.ProcessorData[ProcessorNumber].StateLock);
if (EnableAP) {
if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == 0 ) {
@@ -884,7 +884,7 @@ CpuMpServicesEnableDisableAP ( gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag |= (*HealthFlag & PROCESSOR_HEALTH_STATUS_BIT);
}
- gThread->MutexUnlock (&gMPSystem.ProcessorData[ProcessorNumber].StateLock);
+ gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock);
return EFI_SUCCESS;
}
@@ -1015,9 +1015,9 @@ CpuCheckAllAPsStatus ( if (!EFI_ERROR (Status)) {
NextData = &gMPSystem.ProcessorData[NextNumber];
- gThread->MutexLock (&NextData->StateLock);
+ gThread->MutexLock (NextData->StateLock);
NextData->State = CPU_STATE_READY;
- gThread->MutexUnlock (&NextData->StateLock);
+ gThread->MutexUnlock (NextData->StateLock);
SetApProcedure (NextData, gMPSystem.Procedure, gMPSystem.ProcedureArgument);
}
|