diff options
author | Daniel Boulby <daniel.boulby@arm.com> | 2018-09-20 14:12:46 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-10-03 11:47:30 +0100 |
commit | 87c851349847a608f12623b7fd397956982e41b6 (patch) | |
tree | c84a4450f78e26230ca379f3e2900380c50d9297 /bl31 | |
parent | 1dcc28cfbac5dae3992ad9581f9ea68f6cb339c1 (diff) |
Mark BL31 initialization functions
Mark the initialization functions in BL31, such as context management,
EHF, RAS and PSCI as __init so that they can be reclaimed by the
platform when no longer needed
Change-Id: I7446aeee3dde8950b0f410cb766b7a2312c20130
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Diffstat (limited to 'bl31')
-rw-r--r-- | bl31/bl31_main.c | 4 | ||||
-rw-r--r-- | bl31/ehf.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bl31/bl31_main.c b/bl31/bl31_main.c index 4b7f63c2..62bea010 100644 --- a/bl31/bl31_main.c +++ b/bl31/bl31_main.c @@ -57,7 +57,7 @@ uintptr_t get_arm_std_svc_args(unsigned int svc_mask) /******************************************************************************* * Simple function to initialise all BL31 helper libraries. ******************************************************************************/ -void bl31_lib_init(void) +void __init bl31_lib_init(void) { cm_init(); } @@ -149,7 +149,7 @@ uint32_t bl31_get_next_image_type(void) * This function programs EL3 registers and performs other setup to enable entry * into the next image after BL31 at the next ERET. ******************************************************************************/ -void bl31_prepare_next_image_entry(void) +void __init bl31_prepare_next_image_entry(void) { entry_point_info_t *next_image_info; uint32_t image_type; @@ -451,7 +451,7 @@ static uint64_t ehf_el3_interrupt_handler(uint32_t id, uint32_t flags, /* * Initialize the EL3 exception handling. */ -void ehf_init(void) +void __init ehf_init(void) { unsigned int flags = 0; int ret __unused; |