Add PCD PcdRealTimeClockUpdateTimeout and update code accordingly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5501 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -141,6 +141,7 @@
|
|||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32|UINT32|0x00010031
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32|UINT32|0x00010031
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize|0x20000|UINT32|0x00010032
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize|0x20000|UINT32|0x00010032
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPpiSupported|64|UINT32|0x00010033
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPpiSupported|64|UINT32|0x00010033
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdRealTimeClockUpdateTimeout|100000|UINT32|0x00010034
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0|UINT32|0x30000001
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0|UINT32|0x30000001
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x0|UINT32|0x30000002
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x0|UINT32|0x30000002
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x400|UINT32|0x30000003
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x400|UINT32|0x30000003
|
||||||
|
@ -146,7 +146,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Wait for up to 0.1 seconds for the RTC to be updated
|
// Wait for up to 0.1 seconds for the RTC to be updated
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (100000);
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiAcquireLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiAcquireLock or
|
||||||
// provide a new instance for EfiAcquireLock, say, RtEfiAcquireLock
|
// provide a new instance for EfiAcquireLock, say, RtEfiAcquireLock
|
||||||
@ -272,7 +272,7 @@ Routine Description:
|
|||||||
//
|
//
|
||||||
// Wait for up to 0.1 seconds for the RTC to be updated
|
// Wait for up to 0.1 seconds for the RTC to be updated
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (100000);
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
||||||
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
||||||
@ -391,7 +391,7 @@ Routine Description:
|
|||||||
//
|
//
|
||||||
// Wait for up to 0.1 seconds for the RTC to be updated
|
// Wait for up to 0.1 seconds for the RTC to be updated
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (100000);
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
||||||
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
||||||
@ -504,7 +504,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Wait for up to 0.1 seconds for the RTC to be updated
|
// Wait for up to 0.1 seconds for the RTC to be updated
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (100000);
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
||||||
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
||||||
@ -636,7 +636,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Wait for up to 0.1 seconds for the RTC to be updated
|
// Wait for up to 0.1 seconds for the RTC to be updated
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (100000);
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
||||||
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
||||||
|
@ -62,4 +62,6 @@
|
|||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid
|
gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid
|
||||||
|
|
||||||
|
[Pcd]
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdRealTimeClockUpdateTimeout
|
Reference in New Issue
Block a user