diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-11-01 08:46:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 08:46:02 +0000 |
commit | 122af7dd6d4937922317bc949ca9b8c62bcd20aa (patch) | |
tree | bd5f524d2e974b6a574669aa7bd50bd89c61de60 /include | |
parent | 5b5e6cb74211088d6983d3bfe069e2830ab6b0dc (diff) | |
parent | 17b4c0dd0a12b1c306057b71182e25a69807ff89 (diff) | |
download | arm-trusted-firmware-122af7dd6d4937922317bc949ca9b8c62bcd20aa.tar.gz |
Merge pull request #1150 from dp-arm/dp/events
aarch64: Add PubSub events to capture security state transitions
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/el3_runtime/pubsub_events.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/lib/el3_runtime/pubsub_events.h b/include/lib/el3_runtime/pubsub_events.h index 62550f81..9cfedb4d 100644 --- a/include/lib/el3_runtime/pubsub_events.h +++ b/include/lib/el3_runtime/pubsub_events.h @@ -16,3 +16,21 @@ * initialization. */ REGISTER_PUBSUB_EVENT(psci_cpu_on_finish); + +#ifdef AARCH64 +/* + * These events are published by the AArch64 context management framework + * after the secure context is restored/saved via + * cm_el1_sysregs_context_{restore,save}() API. + */ +REGISTER_PUBSUB_EVENT(cm_entering_secure_world); +REGISTER_PUBSUB_EVENT(cm_exited_secure_world); + +/* + * These events are published by the AArch64 context management framework + * after the normal context is restored/saved via + * cm_el1_sysregs_context_{restore,save}() API. + */ +REGISTER_PUBSUB_EVENT(cm_entering_normal_world); +REGISTER_PUBSUB_EVENT(cm_exited_normal_world); +#endif /* AARCH64 */ |