df41deac1c
It doesn't make sense to keep the aarch32 directory in the 'arch/arm/core' directory as the aarch64 has been moved out. This commit introduces the following major changes. 1. Move all directories and files in 'arch/arm/core/aarch32' to 'arch/arm/core' and remove the 'arch/arm/core/aarch32' directory. 2. Move all directories and files in 'arch/include/aarch32' to 'arch/include' and remove the 'arch/include/aarch32' directory. 3. Remove the nested including in the 'arch/include/kernel_arch_func.h' and 'arch/include/offsets_short_arch.h' header files. 4. Change the path string which is influenced by the changement 1 and 2. Signed-off-by: Huifeng Zhang <Huifeng.Zhang@arm.com>
29 lines
663 B
C
29 lines
663 B
C
/*
|
|
* Copyright (c) 2016 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/*
|
|
* @file
|
|
* @brief Basic C++ destructor module for globals for ARM
|
|
*/
|
|
|
|
#include <zephyr/toolchain.h>
|
|
|
|
EXTERN_C int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso);
|
|
|
|
/**
|
|
* @brief Register destructor for a global object
|
|
*
|
|
* @param objptr global object pointer
|
|
* @param destructor the global object destructor function
|
|
* @param dso Dynamic Shared Object handle for shared libraries
|
|
*
|
|
* Wrapper for __cxa_atexit()
|
|
*/
|
|
int __aeabi_atexit(void *objptr, void (*destructor)(void *), void *dso)
|
|
{
|
|
return __cxa_atexit(destructor, objptr, dso);
|
|
}
|