aboutsummaryrefslogtreecommitdiff
path: root/bl31/aarch64
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2014-04-11 18:39:01 +0100
committerdanh-arm <dan.handley@arm.com>2014-04-11 18:39:01 +0100
commit4b79cce54d0978817caba335d57c529f510f86e6 (patch)
tree97f364c0c7d33077fccaa737b806617bc9fc491b /bl31/aarch64
parente6e54a18f80318e2fcf98f4f8810705618cdea79 (diff)
parent9e86490f8f14f25c7583aaf37412114219f3eb8e (diff)
downloadarm-trusted-firmware-4b79cce54d0978817caba335d57c529f510f86e6.tar.gz
Merge pull request #38 from sandrine-bailleux/sb/tf-issue-125
Fix system counter initialisation
Diffstat (limited to 'bl31/aarch64')
-rw-r--r--bl31/aarch64/bl31_arch_setup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bl31/aarch64/bl31_arch_setup.c b/bl31/aarch64/bl31_arch_setup.c
index 2a424f8..793b895 100644
--- a/bl31/aarch64/bl31_arch_setup.c
+++ b/bl31/aarch64/bl31_arch_setup.c
@@ -40,6 +40,7 @@
void bl31_arch_setup(void)
{
unsigned long tmp_reg = 0;
+ uint64_t counter_freq;
/* Enable alignment checks and set the exception endianness to LE */
tmp_reg = read_sctlr_el3();
@@ -61,7 +62,9 @@ void bl31_arch_setup(void)
enable_serror();
enable_debug_exceptions();
- return;
+ /* Program the counter frequency */
+ counter_freq = plat_get_syscnt_freq();
+ write_cntfrq_el0(counter_freq);
}
/*******************************************************************************