Revision: 16513
http://sourceforge.net/p/edk2/code/16513
Author: oliviermartin
Date: 2014-12-12 19:10:58 +0000 (Fri, 12 Dec 2014)
Log Message:
-----------
ArmPkg/GenericWatchdogDxe: Set up the watchdog timeout relatively to the system
counter
Use the system counter to compute the watchdog compare
value as the watchdog compare value is compared to the
system counter to check if the watchdog timeout expired or not.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <[email protected]>
Reviewed-by: Olivier Martin <[email protected]>
Modified Paths:
--------------
trunk/edk2/ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.c
Modified: trunk/edk2/ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.c
===================================================================
--- trunk/edk2/ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.c
2014-12-12 19:09:24 UTC (rev 16512)
+++ trunk/edk2/ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.c
2014-12-12 19:10:58 UTC (rev 16513)
@@ -181,7 +181,7 @@
IN UINT64 TimerPeriod // In 100ns units
)
{
- UINTN TimerVal;
+ UINTN SystemCount;
EFI_STATUS Status;
// if TimerPerdiod is 0, this is a request to stop the watchdog.
@@ -210,8 +210,8 @@
return Status;
}
WatchdogEnable ();
- TimerVal = ArmGenericTimerGetTimerVal ();
- Status = WatchdogWriteCompareRegister (TimerVal + mNumTimerTicks);
+ SystemCount = ArmGenericTimerGetSystemCount ();
+ Status = WatchdogWriteCompareRegister (SystemCount + mNumTimerTicks);
} else {
Status = WatchdogWriteOffsetRegister ((UINT32)mNumTimerTicks);
WatchdogEnable ();
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits