diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-11-29 10:41:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 10:41:33 +0000 |
commit | 3642ca951bfd06afbd8024b295ce3c14860024b3 (patch) | |
tree | 18ffa579368d4c21243b86f2a4bd6e051f1637e6 /lib/el3_runtime | |
parent | 11a70d7e3ea58ebe183ba18319b87e2f089caf80 (diff) | |
parent | ef69e1ea629542865f2c9b04df578aaa3966fb6a (diff) |
Merge pull request #1170 from dp-arm/dp/amu
Add support for Activity Monitors
Diffstat (limited to 'lib/el3_runtime')
-rw-r--r-- | lib/el3_runtime/aarch32/context_mgmt.c | 4 | ||||
-rw-r--r-- | lib/el3_runtime/aarch64/context_mgmt.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/el3_runtime/aarch32/context_mgmt.c b/lib/el3_runtime/aarch32/context_mgmt.c index a8672d6c..76e440e3 100644 --- a/lib/el3_runtime/aarch32/context_mgmt.c +++ b/lib/el3_runtime/aarch32/context_mgmt.c @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include <amu.h> #include <arch.h> #include <arch_helpers.h> #include <assert.h> @@ -132,6 +133,9 @@ static void cm_init_context_common(cpu_context_t *ctx, const entry_point_info_t static void enable_extensions_nonsecure(int el2_unused) { #if IMAGE_BL32 +#if ENABLE_AMU + amu_enable(el2_unused); +#endif #endif } diff --git a/lib/el3_runtime/aarch64/context_mgmt.c b/lib/el3_runtime/aarch64/context_mgmt.c index 8f1523f0..b892729e 100644 --- a/lib/el3_runtime/aarch64/context_mgmt.c +++ b/lib/el3_runtime/aarch64/context_mgmt.c @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include <amu.h> #include <arch.h> #include <arch_helpers.h> #include <assert.h> @@ -220,6 +221,10 @@ static void enable_extensions_nonsecure(int el2_unused) #if ENABLE_SPE_FOR_LOWER_ELS spe_enable(el2_unused); #endif + +#if ENABLE_AMU + amu_enable(el2_unused); +#endif #endif } |