This commit moves the files under `subsys/cpp` directory to the `lib/cpp` directory because the C++ ABI runtime library and the standard C++ library components are not a "subsystem" (aka. API) in conventional sense and is better described as a "library." Classifying the C++ ABI runtime library and the standard C++ library as "libraries" instead of "subsystems" also better aligns with how the existing C standard library implementation (`lib/libc`) is handled. Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
27 lines
543 B
C
27 lines
543 B
C
/*
|
|
* Copyright (c) 2015 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/*
|
|
* @file
|
|
* @brief Execute initialization routines referenced in .init_array section
|
|
*/
|
|
|
|
typedef void (*func_ptr)(void);
|
|
|
|
extern func_ptr __zephyr_init_array_start[];
|
|
extern func_ptr __zephyr_init_array_end[];
|
|
|
|
/**
|
|
* @brief Execute initialization routines referenced in .init_array section
|
|
*/
|
|
void __do_init_array_aux(void)
|
|
{
|
|
for (func_ptr *func = __zephyr_init_array_start;
|
|
func < __zephyr_init_array_end;
|
|
func++) {
|
|
(*func)();
|
|
}
|
|
}
|