From 281a08cc6438d868bd1b0bcf19bc6c95207b42ac Mon Sep 17 00:00:00 2001 From: Dimitris Papastamos Date: Fri, 13 Oct 2017 12:06:06 +0100 Subject: Refactor Statistical Profiling Extensions implementation Factor out SPE operations in a separate file. Use the publish subscribe framework to drain the SPE buffers before entering secure world. Additionally, enable SPE before entering normal world. A side effect of this change is that the profiling buffers are now only drained when a transition from normal world to secure world happens. Previously they were drained also on return from secure world, which is unnecessary as SPE is not supported in S-EL1. Change-Id: I17582c689b4b525770dbb6db098b3a0b5777b70a Signed-off-by: Dimitris Papastamos --- bl31/bl31.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bl31') diff --git a/bl31/bl31.mk b/bl31/bl31.mk index 336c295d..fccdc8a0 100644 --- a/bl31/bl31.mk +++ b/bl31/bl31.mk @@ -46,6 +46,10 @@ BL31_SOURCES += services/std_svc/sdei/sdei_event.c \ services/std_svc/sdei/sdei_state.c endif +ifeq (${ENABLE_SPE_FOR_LOWER_ELS},1) +BL31_SOURCES += lib/extensions/spe/spe.c +endif + BL31_LINKERFILE := bl31/bl31.ld.S # Flag used to indicate if Crash reporting via console should be included -- cgit v1.2.3