mirror of https://github.com/acidanthera/audk.git
Add missing status code in several modules.
Signed-off-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com> Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com> Reviewed-by: Gao Liming <liming.gao@intel.com> Reviewed-by: Tian Feng <feng.tian@intel.com> Reviewed-by: Fan Jeff <jeff.fan@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13891 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
37623a5c02
commit
44d52203a6
|
@ -204,6 +204,13 @@ PcRtcInit (
|
||||||
Status = RtcTimeFieldsValid (&Time);
|
Status = RtcTimeFieldsValid (&Time);
|
||||||
}
|
}
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
//
|
||||||
|
// Report Status Code to indicate that the RTC has bad date and time
|
||||||
|
//
|
||||||
|
REPORT_STATUS_CODE (
|
||||||
|
EFI_ERROR_CODE | EFI_ERROR_MINOR,
|
||||||
|
(EFI_SOFTWARE_DXE_RT_DRIVER | EFI_SW_EC_BAD_DATE_TIME)
|
||||||
|
);
|
||||||
Time.Second = RTC_INIT_SECOND;
|
Time.Second = RTC_INIT_SECOND;
|
||||||
Time.Minute = RTC_INIT_MINUTE;
|
Time.Minute = RTC_INIT_MINUTE;
|
||||||
Time.Hour = RTC_INIT_HOUR;
|
Time.Hour = RTC_INIT_HOUR;
|
||||||
|
|
|
@ -32,6 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#include <Library/UefiRuntimeLib.h>
|
#include <Library/UefiRuntimeLib.h>
|
||||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||||
#include <Library/PcdLib.h>
|
#include <Library/PcdLib.h>
|
||||||
|
#include <Library/ReportStatusCodeLib.h>
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
DebugLib
|
DebugLib
|
||||||
BaseLib
|
BaseLib
|
||||||
PcdLib
|
PcdLib
|
||||||
|
ReportStatusCodeLib
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiRealTimeClockArchProtocolGuid ## PRODUCES
|
gEfiRealTimeClockArchProtocolGuid ## PRODUCES
|
||||||
|
|
Loading…
Reference in New Issue