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

Align entire TF-A to use Arm in copyright header. Change-Id: Ief9992169efdab61d0da6bd8c5180de7a4bc2244 Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
26 lines
359 B
C
26 lines
359 B
C
/*
|
|
* Copyright (c) 2015-2018, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
|
|
static void (*exitfun)(void);
|
|
|
|
void exit(int status)
|
|
{
|
|
if (exitfun != NULL)
|
|
(*exitfun)();
|
|
for (;;)
|
|
;
|
|
}
|
|
|
|
int atexit(void (*fun)(void))
|
|
{
|
|
if (exitfun != NULL)
|
|
return -1;
|
|
exitfun = fun;
|
|
|
|
return 0;
|
|
}
|