1 /* 2 * Copyright (c) 2015 Wind River Systems, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /* 8 * @file 9 * @brief Execute initialization routines referenced in .init_array section 10 */ 11 12 typedef void (*func_ptr)(void); 13 14 extern func_ptr __zephyr_init_array_start[]; 15 extern func_ptr __zephyr_init_array_end[]; 16 17 /** 18 * @brief Execute initialization routines referenced in .init_array section 19 */ __do_init_array_aux(void)20void __do_init_array_aux(void) 21 { 22 for (func_ptr *func = __zephyr_init_array_start; 23 func < __zephyr_init_array_end; 24 func++) { 25 (*func)(); 26 } 27 } 28