Revision: 13891
http://edk2.svn.sourceforge.net/edk2/?rev=13891&view=rev
Author: li-elvin
Date: 2012-10-30 04:25:20 +0000 (Tue, 30 Oct 2012)
Log Message:
-----------
Add missing status code in several modules.
Signed-off-by: Li Elvin <[email protected]>
Reviewed-by: Yao Jiewen <[email protected]>
Reviewed-by: Ni Ruiyu <[email protected]>
Reviewed-by: Gao Liming <[email protected]>
Reviewed-by: Tian Feng <[email protected]>
Reviewed-by: Fan Jeff <[email protected]>
Modified Paths:
--------------
trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h
trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
Modified: trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
===================================================================
--- trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
2012-10-30 04:23:40 UTC (rev 13890)
+++ trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
2012-10-30 04:25:20 UTC (rev 13891)
@@ -204,6 +204,13 @@
Status = RtcTimeFieldsValid (&Time);
}
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.Minute = RTC_INIT_MINUTE;
Time.Hour = RTC_INIT_HOUR;
Modified: trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h
===================================================================
--- trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h
2012-10-30 04:23:40 UTC (rev 13890)
+++ trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h
2012-10-30 04:25:20 UTC (rev 13891)
@@ -32,6 +32,7 @@
#include <Library/UefiRuntimeLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/PcdLib.h>
+#include <Library/ReportStatusCodeLib.h>
typedef struct {
Modified:
trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
===================================================================
---
trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
2012-10-30 04:23:40 UTC (rev 13890)
+++
trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
2012-10-30 04:25:20 UTC (rev 13891)
@@ -51,6 +51,7 @@
DebugLib
BaseLib
PcdLib
+ ReportStatusCodeLib
[Protocols]
gEfiRealTimeClockArchProtocolGuid ## PRODUCES
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits