diff options
author | Roberto Vargas <roberto.vargas@arm.com> | 2018-05-24 13:34:53 +0100 |
---|---|---|
committer | Roberto Vargas <roberto.vargas@arm.com> | 2018-08-03 11:31:39 +0100 |
commit | 6c3733456706809d5c9fb78a9746bf2fa484fb91 (patch) | |
tree | 33db63840f53e4d26ed3934be84e91f041b6eead /bl2u | |
parent | ea7a57a3a5963a5c8a67bfd42b4f6ad1472b46f3 (diff) | |
download | trusted-firmware-a-6c3733456706809d5c9fb78a9746bf2fa484fb91.tar.gz |
Add atexit function to libc
We had exit but we didn't have atexit, and we were calling panic and
tf_printf from exit, which generated a dependency from exit to them.
Having atexit allows to set a different function pointer in every image.
Change-Id: I95b9556d680d96249ed3b14da159b6f417da7661
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
Diffstat (limited to 'bl2u')
-rw-r--r-- | bl2u/bl2u_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bl2u/bl2u_main.c b/bl2u/bl2u_main.c index a7e3fb916e..b29d57e9db 100644 --- a/bl2u/bl2u_main.c +++ b/bl2u/bl2u_main.c @@ -17,6 +17,7 @@ #include <platform_def.h> #include <stdint.h> + /******************************************************************************* * This function is responsible to: * Load SCP_BL2U if platform has defined SCP_BL2U_BASE |