From d11f10d1e0c28a59bafa711aec936c54d654a7d3 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Wed, 24 Aug 2016 22:02:48 +0800 Subject: UefiCpuPkg/MpInitLib: Rename EndOfPeiFlag to SaveRestoreFlag It will be used by DxePeiLib also. Cc: Michael Kinney Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian --- UefiCpuPkg/Library/MpInitLib/MpLib.c | 2 +- UefiCpuPkg/Library/MpInitLib/MpLib.h | 2 +- UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'UefiCpuPkg') diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c index 47a971bf97..f0e9e46c52 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -1292,7 +1292,7 @@ MpInitLibInitialize ( CpuMpData->CpuApStackSize = ApStackSize; CpuMpData->BackupBuffer = BackupBufferAddr; CpuMpData->BackupBufferSize = ApResetVectorSize; - CpuMpData->EndOfPeiFlag = FALSE; + CpuMpData->SaveRestoreFlag = FALSE; CpuMpData->WakeupBuffer = (UINTN) -1; CpuMpData->CpuCount = 1; CpuMpData->BspNumber = 0; diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpInitLib/MpLib.h index e53deb449d..9b0366ed37 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -198,7 +198,7 @@ struct _CPU_MP_DATA { UINTN WakeupBuffer; UINTN BackupBuffer; UINTN BackupBufferSize; - BOOLEAN EndOfPeiFlag; + BOOLEAN SaveRestoreFlag; volatile UINT32 StartCount; volatile UINT32 FinishedCount; diff --git a/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c b/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c index 5e714eaf19..dd0f1da475 100644 --- a/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c @@ -157,7 +157,7 @@ CpuMpEndOfPeiCallback ( Hob.Raw = GET_NEXT_HOB (Hob); } } else { - CpuMpData->EndOfPeiFlag = TRUE; + CpuMpData->SaveRestoreFlag = TRUE; RestoreWakeupBuffer (CpuMpData); } return EFI_SUCCESS; @@ -316,7 +316,7 @@ AllocateResetVector ( BackupAndPrepareWakeupBuffer (CpuMpData); } - if (CpuMpData->EndOfPeiFlag) { + if (CpuMpData->SaveRestoreFlag) { BackupAndPrepareWakeupBuffer (CpuMpData); } } @@ -331,7 +331,7 @@ FreeResetVector ( IN CPU_MP_DATA *CpuMpData ) { - if (CpuMpData->EndOfPeiFlag) { + if (CpuMpData->SaveRestoreFlag) { RestoreWakeupBuffer (CpuMpData); } } -- cgit v1.2.3