diff options
author | Sami Mujawar <sami.mujawar@arm.com> | 2018-04-24 15:19:06 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-04-26 19:01:52 +0200 |
commit | ed9be80fa9521edc2ef959d493904d4800e64ca1 (patch) | |
tree | 6d356684c29b507c6b148c48834abf1be67be8cf /EmbeddedPkg/Drivers | |
parent | 3f20ed76ce78c94759163918572231778c688ce1 (diff) | |
download | edk2-platforms-ed9be80fa9521edc2ef959d493904d4800e64ca1.tar.xz |
Platform/ARM: Fix platform timer offset in GTDT
The FVP_PLATFORM_TIMER_COUNT is the sum of the memory
mapped platform timers and the watchdog timers.
The watchdog timers can be disabled by setting the
FVP_WATCHDOG_COUNT (defined by PcdWatchdogCount)
to zero.
On the VExpress platform, if the FVP_WATCHDOG_COUNT is
set to zero, the FVP_PLATFORM_TIMER_COUNT is 1 as
VExpress has one memory mapped timer.
The code however incorrectly sets the platform timer
offset to zero in the GTDT. This causes the OS to read
the platform timer information from an invalid offset,
and may crash.
Updated the GTDT table to set the platform timer offset
to zero only when the FVP_PLATFORM_TIMER_COUNT is zero.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'EmbeddedPkg/Drivers')
0 files changed, 0 insertions, 0 deletions