mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 22:35:42 +00:00

NOTE: AARCH32/AARCH64 macros are now deprecated in favor of __aarch64__. All common C compilers pre-define the same macros to signal which architecture the code is being compiled for: __arm__ for AArch32 (or earlier versions) and __aarch64__ for AArch64. There's no need for TF-A to define its own custom macros for this. In order to unify code with the export headers (which use __aarch64__ to avoid another dependency), let's deprecate the AARCH32 and AARCH64 macros and switch the code base over to the pre-defined standard macro. (Since it is somewhat unintuitive that __arm__ only means AArch32, let's standardize on only using __aarch64__.) Change-Id: Ic77de4b052297d77f38fc95f95f65a8ee70cf200 Signed-off-by: Julius Werner <jwerner@chromium.org>
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <lib/el3_runtime/pubsub.h>
|
|
|
|
/*
|
|
* This file defines a list of pubsub events, declared using
|
|
* REGISTER_PUBSUB_EVENT() macro.
|
|
*/
|
|
|
|
/*
|
|
* Event published after a CPU has been powered up and finished its
|
|
* initialization.
|
|
*/
|
|
REGISTER_PUBSUB_EVENT(psci_cpu_on_finish);
|
|
|
|
/*
|
|
* These events are published before/after a CPU has been powered down/up
|
|
* via the PSCI CPU SUSPEND API.
|
|
*/
|
|
REGISTER_PUBSUB_EVENT(psci_suspend_pwrdown_start);
|
|
REGISTER_PUBSUB_EVENT(psci_suspend_pwrdown_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__ */
|